@charset "UTF-8";
* {
  box-sizing: border-box;
  color: inherit;
}

.body {
  margin: 0;
  padding: 0;
  font-family: Helvetica, BlinkMacSystemFont, -apple-system, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5em;
  display: flex;
  flex-direction: column;
  height: 100vh;
  color: #1d1d1f;
  text-rendering: optimizeLegibility;
}

.noperenos {
  white-space: nowrap;
}

.header__name {
  text-transform: uppercase;
}

/* Skip Links Styles */
.skip-links {
  position: static;
  z-index: 9999;
}

.skip-link {
  position: absolute;
  top: -50px;
  left: 6px;
  background: #0066cc;
  color: white;
  padding: 10px 16px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  transition: top 0.3s ease, box-shadow 0.2s ease;
  z-index: 10000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  max-width: calc(100vw - 20px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skip-link:focus {
  top: 8px;
  outline: 2px solid white;
  outline-offset: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Ensure skip-links override general focus styles */
.skip-link:focus-visible {
  transform: none;
  outline: 2px solid white;
  outline-offset: 2px;
}

/* Mobile adjustments for skip links */
@media (max-width: 768px) {
  .skip-link {
    left: 10px;
    right: 10px;
    font-size: 13px;
    padding: 8px 12px;
    white-space: normal;
    text-align: center;
  }
  .skip-link:focus {
    top: 10px;
  }
}
/* Consistent focus indicators across all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Links specific focus styles */
a:focus-visible {
  text-decoration: none;
  outline-offset: 4px;
}

/* Ensure focus works with existing hover states */
.link:focus-visible {
  text-decoration: none;
  outline: 2px solid #0066cc;
  outline-offset: 4px;
  border-radius: 4px;
}

.button-link:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
  border-color: #0066cc;
  transform: translateY(-1px);
}

/* Base link class */
.link {
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: color 0.3s ease;
  width: fit-content;
}
.link:hover {
  color: #004488;
}
.link:visited {
  color: inherit;
}

/* Modifier for underlined links */
.link--underlined {
  box-shadow: inset 0 -2px 0 -1px rgba(0, 0, 0, 0.15);
}
.link--underlined:hover {
  box-shadow: inset 0 -2px 0 -1px #0066cc;
}

/* Modifier for links with hover underline animation */
.link--animated::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #0066cc;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.link--animated:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Modifier for links with background effect on hover */
.link--hover-bg {
  padding: 0.2em 0.5em;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.link--hover-bg:hover {
  background-color: rgba(0, 102, 204, 0.05);
  border-radius: 4px;
}

/* Icon element inside a link */
.link__icon {
  transition: transform 0.3s ease, filter 0.3s ease;
}
.link:hover .link__icon {
  transform: translateY(-2px);
  filter: drop-shadow(0 2px 3px rgba(0, 102, 204, 0.3));
}

/* Breadcrumbs component */
.breadcrumbs__li a {
  display: flex;
  align-items: center;
}

/* Can use a combination of classes for breadcrumbs */
/* <a href="/" class="link link--hover-bg breadcrumbs__link"> */
.breadcrumbs__link {
  display: flex;
  align-items: center;
}

/* Headline links (keeping your current code) */
.w-headline-link {
  color: transparent;
  display: none;
  font-weight: 500;
  margin-left: 2px;
}

@media (min-width: 481px) {
  .w-headline-link {
    display: inline;
  }
}
.w-headline-link:focus,
:hover > .w-headline-link {
  color: #0066cc;
  display: inline;
  text-decoration: none;
}

/* Link styled as a button */
.button-link {
  display: inline-flex;
  align-items: center;
  padding: 0.6em 1.2em;
  border-radius: 4px;
  background-color: transparent;
  border: 1px solid #0066cc;
  color: #0066cc;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}
.button-link:hover {
  background-color: #0066cc;
  color: white;
}

/* Modifier for button-link with icon */
.button-link--with-icon {
  gap: 0.5em;
}
.button-link--with-icon .button-link__icon {
  transition: transform 0.3s ease;
}
.button-link--with-icon:hover .button-link__icon {
  transform: translateX(3px);
}

/* page__title  */
.page__title {
  font-weight: 400;
  margin: 0;
}

.page__slogan {
  text-transform: uppercase;
  margin: 1em 0;
  font-size: 1em;
}

@media only screen and (min-width: 1380px) {
  .page__title {
    font-size: 3em;
    line-height: 1.3em;
  }
}
@media only screen and (max-width: 1379px) {
  .page__title {
    font-size: 2.25em;
    line-height: 1.2em;
  }
}
.paragraph {
  max-width: 80ch;
  margin: 0 0 1.1em;
}

b,
strong {
  font-weight: inherit;
}

em {
  font-style: italic;
}

.bold {
  font-weight: bolder;
}

.italic {
  font-style: italic;
}

.image {
  display: block;
  position: relative;
  height: auto;
  width: 100%;
}

.image-grid {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.h1__title {
  font-size: 30px;
  font-weight: 600;
}

.figure,
figure {
  padding: 0;
  margin: 0;
}

.figcaption,
figcaption {
  font-size: 85%;
  max-width: 80%;
  line-height: 1.2em;
  margin-top: 0.3em;
}

.round-1 {
  border-radius: 0.375rem;
}

.round-2 {
  border-radius: 2.375rem;
}

.round-3 {
  border-radius: 3.375rem;
}

.mb-1em {
  margin-bottom: 1em;
}

.element--hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.black {
  background-color: #1d1d1f;
}

.article__wrapper {
  flex: 1;
}

.footer__wrapper {
  flex: 0;
}

.article__wrapper,
.footer__wrapper {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 1100px) 1fr;
  grid-column-gap: 2em;
  column-gap: 2em;
}

@media (max-width: 640px) {
  .article__wrapper,
  .footer__wrapper {
    grid-column-gap: 1.5em;
    column-gap: 1.5em;
  }
}
.header {
  grid-column: 2;
}

.header {
  padding: 2em 0;
}

@media (min-width: 768px) {
  .header {
    padding: 3em 0;
  }
}
.full-bleed {
  grid-column: 1/-1;
}

.article-bleed {
  grid-column: 2;
}

.footer__wrapper,
.photo-section,
.home__client-list-section,
.home__uslugi-section {
  grid-column: 1/-1;
}

.menu {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 1100px) 1fr;
}

.mobile__lists {
  grid-column: 1/-1;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 1.25em 0.75em;
}

@media (min-width: 768px) {
  .mobile__lists {
    padding: 1.5em 1em;
  }
}
.menu-header__wrapper {
  position: fixed;
  inset: 0;
  background: rgba(250, 250, 250, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  display: none;
  padding: 3.5rem 2rem;
}

/* Легкий шум поверх фона */
.menu-header__wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
}

/* Контент поверх шума */
.menu__header {
  display: none;
  position: relative;
  z-index: 1;
}

/* Оверлей открытого меню */
.menu-header__wrapper--open {
  display: block;
}

/* Блокировка скролла при открытом меню */
body.menu-is-open {
  overflow: hidden;
}

/* Когда меню открыто */
.menu__header.menu__header--open {
  display: grid;
  height: 100%;
  max-width: 1100px;
  margin: 0 auto;
  align-content: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem 4rem;
  color: #1d1d1f;
}

/* 2. Левая колонка (Вторичное) */
.menu__info-col {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Слоган в меню */
.menu__slogan-box {
  padding-bottom: 0.5rem;
}

.logo__slogan {
  display: block;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #666666;
  line-height: 1.4;
}

/* Контакты в меню */
.menu__contacts-box {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.menu__contacts-box .menu__link--large {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1d1d1f;
  text-decoration: none;
  position: relative;
  padding: 0.25em 0;
  box-shadow: inset 0 -2px 0 -1px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
}
.menu__contacts-box .menu__link--large:hover {
  color: #0066cc;
  box-shadow: inset 0 -2px 0 -1px #0066cc;
  transform: translateY(-2px);
}
.menu__contacts-box .menu__link--large:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 4px;
  border-radius: 2px;
}

.menu__contacts-box > a:not(.menu__link--large) {
  display: inline-block;
  font-size: 1rem;
  color: var(--text-color, #333);
  text-decoration: none;
  position: relative;
  padding: 0.5em 0;
  box-shadow: inset 0 -2px 0 -1px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
  width: fit-content;
}
.menu__contacts-box > a:not(.menu__link--large):hover {
  color: #0066cc;
  box-shadow: inset 0 -2px 0 -1px #0066cc;
}
.menu__contacts-box > a:not(.menu__link--large):focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 4px;
  border-radius: 2px;
}

.menu__link--large {
  font-size: 1.125rem;
  font-weight: 600;
}

/* 3. Правая колонка (Главное - Навигация) */
.menu__nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
  text-align: right;
}

.nav-link {
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 600;
  text-decoration: none;
  color: #1d1d1f;
  line-height: 1.15;
  letter-spacing: -0.01em;
  padding: 0.15em 0.35em;
  border-radius: 6px;
  box-shadow: inset 0 -2px 0 -1px rgba(0, 0, 0, 0.12);
  transition: color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  display: inline-block;
}

.nav-link:hover {
  transform: translateX(-6px);
  color: #0066cc;
  background-color: rgba(0, 102, 204, 0.05);
  box-shadow: inset 0 -2px 0 -1px #0066cc;
}

.nav-link--active {
  color: #0066cc;
  position: relative;
  background-color: rgba(0, 102, 204, 0.07);
  box-shadow: inset 0 -2px 0 -1px #0066cc;
  cursor: default;
  pointer-events: none;
}

/* Эффект: при наведении на одну ссылку, остальные тускнеют */
.menu__nav-list:hover .nav-link:not(:hover):not(.nav-link--active) {
  opacity: 0.4;
}

/* Адаптив для мобилок */
@media (max-width: 768px) {
  .menu-header__wrapper {
    padding: 3rem 1.5rem;
  }
  .menu__header.menu__header--open {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 3rem;
  }
  /* Переорганизация порядка элементов на мобилке */
  .menu__nav-col {
    order: 1;
    width: 100%;
  }
  .menu__info-col {
    order: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .menu__slogan-box {
    text-align: center;
  }
  .logo__slogan {
    font-size: 0.75rem;
  }
  .menu__contacts-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    width: 100%;
  }
  .menu__contacts-box .menu__link--large {
    font-size: 1.25rem;
    padding: 0.4em 0.8em;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
  }
  .menu__contacts-box > a:not(.menu__link--large) {
    font-size: 0.95rem;
    padding: 0.3em 0.6em;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    min-width: 40px;
  }
  .menu__social-links {
    justify-content: center;
    width: 100%;
  }
  .nav-link {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    padding: 0.3em 0.8em;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
  }
  .menu__nav-list {
    text-align: center;
    justify-items: center;
  }
}
.logo__link {
  color: #1d1d1f;
  text-decoration: none;
}

/* Стили только для ссылки (не для span) */
a.logo__link:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 4px;
  border-radius: 4px;
}

a.logo__link::before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  content: "";
}

/* Когда логотип это span (на главной), делаем курсор обычным */
span.logo__link {
  cursor: default;
}

/* Соцсети в меню */
.menu__social-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin-bottom: 0;
  justify-content: flex-start;
  gap: 0.3rem;
  padding-top: 0.5rem;
}

.social-links__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 6px;
  border-radius: 8px;
  color: #999999;
  text-decoration: none;
  font-size: 24px;
  background-color: transparent;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  position: relative;
}
.social-links__item:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
  border-color: #0066cc;
}
.social-links__item:hover {
  border-color: rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.social-links__item svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.social-links--facebook:hover {
  color: #1877f2;
  background-color: rgba(24, 119, 242, 0.05);
  border-color: rgba(24, 119, 242, 0.2);
}

.social-links--youtube:hover {
  color: #ff0033;
  background-color: rgba(255, 0, 51, 0.05);
  border-color: rgba(255, 0, 51, 0.2);
}

.social-links--instagram:hover {
  color: #c32aa3;
  background-color: rgba(195, 42, 163, 0.05);
  border-color: rgba(195, 42, 163, 0.2);
}

/* Центрирование соц. сетей ТОЛЬКО в меню на мобилке */
@media (max-width: 768px) {
  .menu__info-col .menu__social-links {
    justify-content: center;
  }
}
.menu__button {
  position: relative;
  z-index: 120;
  display: block;
  margin: 0;
  padding: 6px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.2s ease-in-out;
}
.menu__button:hover, .menu__button:focus-visible {
  background-color: rgba(0, 0, 0, 0.08);
}
.menu__button:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

/* Mobile touch targets */
@media (max-width: 768px) {
  .menu__button {
    padding: 8px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 8px;
  }
}
.menu__icon {
  display: block;
  stroke: #1d1d1f;
}

.menu__icon:hover {
  stroke: #1d1d1f;
}

.menu__icon-menu,
.menu__button--open .menu__icon-cross {
  display: block;
}

.menu__icon-cross,
.menu__button--open .menu__icon-menu {
  display: none;
}

/* Держим крестик поверх оверлея и в удобной зоне клика */
.logo__slogan {
  text-transform: uppercase;
  font-size: 14px;
}

.logo {
  display: grid;
  grid-template-columns: min-content 1fr;
  column-gap: 8px;
  line-height: 1;
  align-items: center;
  position: relative;
  z-index: 120;
}

.logo__image {
  grid-row: span 2;
}

.logo__title {
  margin: 0 0 0.15em 0;
  font-weight: bold;
}

.logo__tagline {
  margin: 0;
  text-transform: uppercase;
}

@media (max-width: 400px) {
  .logo__tagline {
    font-size: 0.75em;
    letter-spacing: 0.037em;
  }
  .logo__title {
    font-size: 0.875em;
  }
}
@media (min-width: 400px) {
  .logo__tagline {
    font-size: 0.813em;
    letter-spacing: 0.0725em;
  }
  .logo__title {
    font-size: 1em;
  }
}
.footer__wrapper {
  background-color: #f5f5f7;
  /* Vertical padding only to ensure horizontal grid alignment with main content */
  padding: 5em 0 2em 0;
  margin-top: auto;
}

/* This element is the direct child of .footer__wrapper (which is the Grid container) */
.page__footer {
  grid-column: 2;
  width: 100%;
}

.footer__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2.5em;
}

/* --- Mobile Ordering --- */
.footer__brand {
  order: 1;
}

.footer__nav {
  order: 2;
}

.footer__contacts {
  order: 3;
}

.footer__qr {
  order: 4;
}

.footer__legal {
  order: 5;
} /* Always last on mobile */
/* --- Desktop Layout --- */
@media (min-width: 900px) {
  .footer__content {
    display: grid;
    /* Distribute space evenly across the 1100px track */
    grid-template-columns: 2fr 1fr 1.5fr 120px;
    gap: 2em;
    align-items: start;
  }
  .footer__brand {
    order: unset;
    grid-column: 1;
    grid-row: 1;
  }
  .footer__nav {
    order: unset;
    grid-column: 2;
    grid-row: 1;
  }
  .footer__contacts {
    order: unset;
    grid-column: 3;
    grid-row: 1;
  }
  .footer__qr {
    order: unset;
    grid-column: 4;
    grid-row: 1;
    justify-self: end;
  }
  .footer__legal {
    order: unset;
    grid-column: 1/-1; /* Full width at the bottom */
    grid-row: 2;
    margin-top: 3em;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 2em;
  }
}
/* --- Components --- */
.footer__slogan {
  text-transform: uppercase;
  font-size: 0.75em;
  font-weight: 500;
  margin: 0 0 0.3em 0;
  color: #6e6e73;
  letter-spacing: 0.05em;
}

.footer__name {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.15; /* Tighter line height for two lines */
  color: #1d1d1f;
}

.footer__inn {
  font-size: 0.9em;
  color: #6e6e73;
  margin: 0;
  line-height: 1.5;
}

.footer__location {
  display: inline-block;
}

/* Links (Inheriting Original Style from _universal.scss) */
.footer__menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}

.footer__menu-link,
.contact-link {
  width: fit-content;
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  /* Ensure social links have a bit more space from the last contact link */
}
.footer__contacts .menu__social-links {
  margin-top: 0.4em;
  padding-top: 0;
}

/* --- Utilities --- */
.desktop-only {
  display: none;
}

@media (min-width: 900px) {
  .desktop-only {
    display: block;
  }
}