/* Style CSS for ООО "Перспектива" - Visual replica of avuar.ru */

/* Local Fonts */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  src: url('../fonts/Roboto-VariableFont_wdth,wght.ttf') format('truetype');
  font-display: block;
}

@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 100 900;
  src: url('../fonts/Roboto-Italic-VariableFont_wdth,wght.ttf') format('truetype');
  font-display: block;
}

/* Variables */
:root {
  --color-primary: #007ced;
  --color-secondary: #2c67b9;
  --color-accent-yellow: #ffdc36;
  --color-text-dark: #444444;
  --color-text-muted: #888888;
  --color-bg-light: #f8f9fa;
  --color-border: #e2e8f0;

  --font-main: 'Roboto', Arial, sans-serif;
  --max-width: 1200px;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  height: 100%;
}

body {
  font-family: var(--font-main);
  color: var(--color-text-dark);
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

a[href^="mailto:"],
a[href^="https://t.me/"] {
  color: #007ced !important;
  text-decoration: underline !important;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* Header styling similar to avuar.ru */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.header-main {
  min-height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.header__logo img {
  max-height: 60px;
  width: auto;
}

/* Align Nav menu strictly to the right */
.header-main__nav {
  margin-left: auto;
}

.header-main__menu {
  display: flex;
  align-items: center;
}

.header-main__menu>li {
  position: relative;
  padding-bottom: 20px;
  z-index: 100;
}

.header-main__menu>li>a {
  color: #848fa3;
  font-size: 16px;
  font-weight: 400;
  padding: 10px 30px 5px 30px;
  cursor: pointer;
  display: inline-block;
  transition: all 0.0s ease;
}

.header-main__menu>li>span {
  color: #848fa3;
  font-size: 16px;
  font-weight: 400;
  padding: 10px 30px 5px 30px;
  cursor: default;
  display: inline-block;
  transition: all 0.0s ease;
}

/* Hover effects */
.header-main__menu>li>a:hover,
.header-main__menu>li>span:hover,
.header-main__menu>li:has(> .header-main__submenu-block:hover)>a,
.header-main__menu>li:has(> .header-main__submenu-block:hover)>span {
  text-decoration: none;
  color: var(--color-accent-yellow);
  background-color: var(--color-secondary);
}

.header-main__menu>li>span:hover i,
.header-main__menu>li:has(> .header-main__submenu-block:hover)>span i {
  color: #ffffff;
}

/* Submenu structure */
.header-main__submenu-block {
  display: none;
  position: relative;
  z-index: 1000;
}

.header-main__menu>li:hover .header-main__submenu-block {
  display: block;
}

.header-main__submenu-wrap {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 11;
  background-color: var(--color-secondary);
  padding: 16px 30px;
  min-width: 280px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.header-main__submenu li {
  width: 100%;
  padding: 8px 0;
}

.header-main__submenu li a {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.3;
  display: block;
}

.header-main__submenu li a:hover {
  color: var(--color-accent-yellow);
  text-decoration: underline;
}

/* Buttons */
.btn {
  background: linear-gradient(248.91deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%), var(--color-primary);
  border-radius: 30px;
  font-size: 16px;
  color: #ffffff;
  font-weight: 300;
  padding: 12px 30px;
  display: inline-block;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-yellow {
  background: var(--color-accent-yellow);
  color: #074cad;
}

.btn-yellow:hover {
  background: var(--color-accent-yellow);
  color: var(--color-primary);
}

/* Services section structure */
/* Services section structure */
.services {
  padding-top: 140px;
  margin-bottom: 120px;
  position: relative;
}

.services__row {
  display: flex;
  position: relative;
  z-index: 10;
  margin-bottom: 0;
}

.services__col {
  display: flex;
  flex-direction: column;
}

.services__col--2third {
  flex: 0 0 66.6667%;
  max-width: 66.6667%;
}

.services__col--1third {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
}

.services__item {
  padding: 60px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 338px;
  border-radius: 0;
  background-size: cover;
  background-repeat: no-repeat;
  color: #ffffff;
  transition: all 0.5s ease;
}

/* Semi-transparent blue overlay mimicking avuar.ru */
.services__item::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  transition: all 0.5s ease;
}

/* Custom background images and hover overlay targets */
.services__item--audit {
  background-image: url('../img/services__item--audit_BG.jpg');
}

.services__item--audit::before {
  background: linear-gradient(247.48deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%), #007CED;
  opacity: 0.6;
}

.services__item--audit:hover::before,
.services__item--audit.active::before {
  background: #0C99F9;
  opacity: 1;
}

.services__item--jurist {
  background-image: url('../img/services__item--jurist_BG.jpg');
}

.services__item--jurist::before {
  background: linear-gradient(247.48deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%), #007CED;
  opacity: 0.6;
}

.services__item--jurist:hover::before,
.services__item--jurist.active::before {
  background: #074CAD;
  opacity: 1;
}

.services__item--consulting {
  background-image: url('../img/consulting2.jpg');
  background-position: center bottom;
  flex: 1;
}

.services__item--consulting::before {
  background: linear-gradient(263.42deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%), #31B1FF;
  opacity: 0.6;
}

.services__item--consulting:hover::before,
.services__item--consulting.active::before {
  opacity: 1;
}

.services__item--couting {
  background-image: url('../img/1.png');
  background-position: center bottom;
  flex: 1;
}

.services__item--couting::before {
  background: linear-gradient(264.08deg, rgba(255, 255, 255, 0.4) -1.52%, rgba(255, 255, 255, 0) 98.48%), var(--color-primary);
  opacity: 0.6;
}

.services__item--couting:hover::before,
.services__item--couting.active::before {
  background: #42b7ff;
  opacity: 1;
}

.services__item--invest {
  background-image: url('../img/services__item--education_BG.jpg');
  background-position: -250px 0;
  width: 50%;
}

.services__item--invest::before {
  background: linear-gradient(247.48deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%), var(--color-primary);
  opacity: 0.6;
}

.services__item--invest:hover::before,
.services__item--invest.active::before {
  background: #2680ff;
  opacity: 1;
}

.services__item--rating {
  background-image: url('../img/services__item--rating_BG.jpg');
  width: 50%;
}

.services__item--rating::before {
  background: linear-gradient(264.08deg, rgba(255, 255, 255, 0.4) -1.52%, rgba(255, 255, 255, 0) 98.48%), var(--color-primary);
  opacity: 0.6;
}

.services__item--rating:hover::before,
.services__item--rating.active::before {
  background: #074cad;
  opacity: 1;
}

.services__item--education {
  background-image: url('../img/services__item--education_BG.jpg');
}

.services__item--education::before {
  background: linear-gradient(247.48deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%), var(--color-primary);
  opacity: 0;
}

.services__item--education:hover::before,
.services__item--education.active::before {
  background: #0C99F9;
  opacity: 1;
}

/* Ensure contents are relative on top of overlay */
.services__item h2,
.services__item h3,
.services__item p,
.services__item .services__row,
.services__item .services__text,
.services__item a {
  position: relative;
  z-index: 10;
}

.services__item h2 {
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 42px;
  margin-bottom: 40px;
}

.services__item h3 {
  font-size: 18px;
  letter-spacing: 0.02em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 15px;
}

.services__item p {
  font-size: 15px;
  font-weight: 300;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
}

.services__text {
  flex: 1;
}

/* Make the entire card or text column clickable */
.services__item .block_link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 15;
  cursor: pointer;
}

.block_link--left {
  width: 50%;
  left: 0;
}

.block_link--right {
  width: 50%;
  left: 50%;
}

/* Show buttons ONLY when card is hovered */
.services__item a.btn {
  opacity: 0;
  position: relative;
  z-index: 20;
  transition: opacity 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.services__item:hover a.btn,
.services__item a.btn:hover {
  opacity: 1;
}

/* Shaded container wrapper for Stats and Achievements */
.wrap-bg {
  padding-top: 170px;
  background: linear-gradient(to bottom, #fef9f6 0%, #ffffff 100%);
  position: relative;
  z-index: 0;
}

/* Statistics (Plus) Section */
.plus {
  margin-bottom: 90px;
}

.plus .container {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
}

.plus__item {
  width: 200px;
}

.plus__item--title {
  width: 250px;
}

.plus__item h3 {
  font-weight: 300;
  font-size: 24px;
  line-height: 36px;
  letter-spacing: 0.02em;
  color: #444444;
}

.plus__item b {
  display: block;
  font-weight: bold;
  font-size: 20px;
  line-height: 23px;
  color: #007ced;
  margin-bottom: 10px;
}

.plus__item p {
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
  color: #888888;
}

/* Achievements (Rating) Section */
.rating {
  padding-bottom: 120px;
  position: relative;
}

.rating__container {
  display: flex;
  justify-content: space-around;
  gap: 30px;
}

.rating__item {
  flex: 1;
  max-width: 373px;
  perspective: 1000px;
  transform-style: preserve-3d;
  height: 480px;
}

.rating__item-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.1s ease-out;
  transform-style: preserve-3d;
}

/* Shadow blurs matching avuar.ru values */
.rating__item-wrap::before {
  content: '';
  position: absolute;
  width: 293px;
  height: 465px;
  background: rgba(0, 0, 0, 0.08);
  filter: blur(30px);
  left: 50%;
  transform: translateX(-50%) translateZ(-20px);
  top: 20px;
  pointer-events: none;
}

.rating__block {
  height: 100%;
  width: 100%;
  position: relative;
  background: #ffffff;
  padding: 50px 30px 70px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  border: 1px solid var(--color-border);
  transform: translateZ(20px);
  backface-visibility: hidden;
  cursor: pointer;
}

.rating__block * {
  pointer-events: none;
}

.rating__price {
  width: 60px;
  height: 60px;
  margin-bottom: 25px;
  object-fit: contain;
}

.rating__title {
  font-weight: 300;
  font-size: 48px;
  line-height: 56px;
  color: var(--color-text-dark);
  margin-bottom: 20px;
}

.rating__text {
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text-muted);
  margin-bottom: 30px;
}

.rating__logo {
  height: 35px;
  object-fit: contain;
}



/* Background circles styling */
.circle {
  border: 3px solid rgba(0, 0, 0, 0.03);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1 !important;
}

.services .circle {
  position: absolute;
  width: 688px;
  height: 688px;
  top: 0;
  left: -350px;
  z-index: 1;
}

.services .circle.circle2 {
  position: absolute;
  width: 332px;
  height: 332px;
  right: -150px;
  bottom: -150px;
  z-index: 1;
}

.rating .circle {
  position: absolute;
  width: 332px;
  height: 332px;
  left: -150px;
  top: -50px;
  z-index: 1;
}



/* Page Banner */
.page-banner {
  background-position: center top;
  background-size: cover;
  color: white;
  min-height: 220px;
  margin-top: 80px;
  /* Offset for fixed header */
  margin-bottom: 20px;
}

.page-banner__content {
  margin: auto;
  max-width: 1200px;
  padding: 0.1px 20px;
  position: relative;
}

.page-banner__title {
  font-weight: normal;
  line-height: 64px;
  margin: 60px 0;
  text-align: left;
  color: #fff;
  font-size: 48px;
}

/* Team Page Styles (reproducing avuar.ru/about/komanda/ exactly) */
.team_page_section {
  padding: 100px 0 80px 0;
  background-color: #ffffff;
}

/* Vacancies Styles (avuar.ru exact match) */
.vacancies_page_section {
  padding: 40px 0 80px 0;
  background-color: #ffffff;
}

/* Utilities used in vacancy block */
.ibw {
  font-size: 0;
  position: relative;
}

.ib {
  display: inline-block;
  vertical-align: top;
}

.fs {
  font-size: 16px;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

.w75 {
  width: 75%;
}

.w25 {
  width: 25%;
}

.steel {
  color: #7b879c;
}

.pp {
  padding: 0 67px 0 85px;
}

@media (max-width: 768px) {
  .pp {
    padding: 0 20px;
  }

  .w75,
  .w25 {
    width: 100%;
    display: block;
    margin-bottom: 10px;
  }
}

.spoiler_list.vacancies {
  list-style: none;
  padding: 0;
  margin: 2em 0 0;
}

.spoiler_list.vacancies>li {
  background: #ebf2fd;
  color: #007ced;
  font-size: 120%;
  padding: 0;
  transition: border-color .3s ease-in-out, background .3s ease-in-out;
  position: relative;
  border-bottom: 1px solid #cfdae2;
  margin-bottom: 0;
}

.spoiler_list.vacancies>li:last-of-type {
  border-bottom: none;
}

.spoiler_list.vacancies>li.active {
  background: #f5f9ff;
  border-color: #cfdae2;
}

h2.vacancy {
  font-size: 100%;
  font-weight: normal;
  margin: 0;
  padding-top: 1em;
  padding-bottom: 1em;
  position: relative;
  display: block;
  color: #007ced;
  transition: color 0.3s;
  text-align: center;
}

.spoiler_list.vacancies>li:hover h2.vacancy {
  color: #074cad;
}

h2.vacancy::after {
  position: absolute;
  content: '\f107';
  font-family: 'FontAwesome';
  font-weight: 900;
  right: 20px;
  top: 50%;
  margin-top: -12px;
  font-size: 18px;
  transition: transform .3s;
  color: #007ced;
}

li.active h2.vacancy::after {
  transform: rotate(-180deg);
}

.salary.steel {
  position: absolute;
  right: 67px;
  top: 1.1em;
  color: #666;
  font-size: 16px;
}

@media (max-width: 1050px) {
  .salary.steel {
    position: relative;
    right: auto;
    top: auto;
    padding: 0 20px 15px 20px;
  }
}

.salary .conditions {
  float: left;
  font-size: 11px;
  width: 8em;
  text-align: right;
  line-height: 1.1;
  color: #7b879c;
}

.salary .sum {
  float: right;
  font-size: 20px;
  margin: 0 0 0 10px;
  color: #333;
}

.vacancy_details {
  background: #f5f9ff;
  color: black;
  display: none;
  padding-bottom: 1.5em;
  font-size: 16px;
  line-height: 1.6;
  cursor: auto;
}

.apply_for_this {
  margin-top: 20px;
}

.apply_for_this .btn {
  display: inline-block;
  padding: 10px 24px;
  background-color: #f6cc07;
  color: #212529;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.apply_for_this .btn:hover {
  background-color: #e0b800;
}

.team_page_title {
  font-weight: 300;
  font-size: 40px;
  line-height: 47px;
  color: #646c7f;
  margin-bottom: 60px;
  text-align: center;
}

.team_list_container {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1000px;
}

.member:not(:first-child) {
  margin: 2em 0 0;
}

.member_details_wrapper {
  border-bottom: 1px solid #7c87a3;
  min-height: 15rem;
  /* 240px */
  position: relative;
  display: block;
}

.member_details_wrapper.pp {
  padding: 0 67px 20px 85px;
}

.member_photo {
  position: absolute;
  bottom: 0;
  left: 3em;
  z-index: 20;
  width: 200px;
  /* height: 240px; */
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.member_photo img {
  max-width: 100%;
  max-height: 240px;
  display: block;
  object-fit: contain;
}

.member_photo_placeholder {
  width: 100%;
  height: 100%;
  background-color: #e8ecf1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0bec5;
  font-size: 56px;
}

.member_photo::before {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 100%);
  bottom: 0;
  content: '';
  height: 100px;
  position: absolute;
  width: 100%;
  z-index: 21;
  pointer-events: none;
}

/* Alternating odd/even positions for photos and details */
.member:nth-child(2n) .member_photo {
  left: auto;
  right: 3em;
  transform: rotateY(-180deg);
}

.member_details.two_third {
  margin: 0 0 0 33.33%;
  padding-bottom: 1em;
  width: 66.66%;
}

.member:nth-child(2n) .member_details.two_third {
  margin: 0 33.33% 0 0;
}

.member_name {
  color: #384a6e;
  font-size: 24px;
  font-weight: normal;
  line-height: 1.2;
  margin-bottom: 8px;
}

.member_position {
  color: #7c879d;
  font-size: 16px;
  margin: .66em 0;
  font-weight: 300;
}

.member_perks {
  font-size: 14px;
  line-height: 1.5;
  color: #555555;
  margin: 15px 0;
  padding-left: 20px;
  list-style-type: disc;
}

.member_perks li {
  margin-bottom: 8px;
  color: var(--color-text-muted);
}

.member_email {
  color: #7c879d;
  margin-top: 15px;
}

.member_email a {
  color: #0a57a6;
  text-decoration: underline;
  font-size: 14px;
}

.member_email a:hover {
  color: #007ced;
  text-decoration: none;
}

/* Footer styling */
.footer {
  background-color: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
  padding: 80px 0 40px 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.8fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer__col-title {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--color-text-dark);
  letter-spacing: 0.05em;
}

.footer__col-logo {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.footer__col-logo img {
  max-height: 50px;
  width: auto;
}

.footer__contacts-list li {
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.footer__contacts-list strong {
  color: var(--color-text-dark);
}

.footer__social {
  margin-top: 4px;
}

.footer__telegram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #26A5E4;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.footer__telegram-link:hover {
  background-color: #1d8abf;
  transform: scale(1.1);
}

.footer__telegram-icon {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}

.footer__menu-list li {
  margin-bottom: 12px;
}

.footer__menu-list a {
  font-size: 14px;
  color: var(--color-text-muted);
}

.footer__menu-list a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.footer__info-text {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copy {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Modal Popup Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(27, 33, 44, 0.6);
  backdrop-filter: blur(4px);
}

.modal__content {
  background-color: #ffffff;
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
  padding: 40px;
  position: relative;
  z-index: 2010;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal.active .modal__content {
  transform: scale(1);
}

.modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__close::before,
.modal__close::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 2px;
  background-color: var(--color-text-muted);
  transition: all 0.3s ease;
}

.modal__close::before {
  transform: rotate(45deg);
}

.modal__close::after {
  transform: rotate(-45deg);
}

.modal__close:hover::before,
.modal__close:hover::after {
  background-color: var(--color-text-dark);
}

.modal__title {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--color-text-dark);
}

.modal__subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 25px;
}


/* Mobile Burger Menu Base Styles */
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1060;
  position: relative;
  padding: 0;
}

.header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text-dark);
  transition: all 0.3s ease;
  transform-origin: center;
}

.header__burger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.header__burger.active span:nth-child(2) {
  opacity: 0;
}

.header__burger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Responsiveness Settings */

/* Tablets and below (992px) */
@media (max-width: 992px) {

  /* Show buttons constantly on mobile format */
  .services__item a.btn {
    opacity: 1;
  }

  .header-main__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background-color: #ffffff;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 40px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .header-main__nav.active {
    right: 0;
  }

  .header-main__menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
  }

  .header-main__menu>li {
    width: 100%;
    padding: 0;
  }

  .header-main__menu>li>span,
  .header-main__menu>li>a {
    width: 100%;
    font-size: 18px;
    border-bottom: 1px solid var(--color-border);
    padding: 12px 0;
  }

  .header-main__submenu-block {
    position: static;
    transform: none;
    box-shadow: none;
    padding: 0 0 0 20px;
    display: block !important;
  }

  .header-main__submenu-wrap {
    position: static;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
    min-width: auto;
  }

  .header-main__submenu li a {
    color: #848fa3;
    font-size: 16px;
    padding: 10px 0;
  }

  .header-main__submenu li a:hover {
    color: var(--color-primary);
    text-decoration: none;
  }

  .header__burger {
    display: flex;
  }

  .services__row {
    flex-direction: column;
  }

  .services__col,
  .services__col--2third,
  .services__col--1third {
    width: 100% !important;
    max-width: 100% !important;
  }

  .services__item--invest,
  .services__item--rating {
    width: 100% !important;
  }

  .services__item--invest {
    background-position: center;
  }

  .rating__container {
    flex-direction: column;
    align-items: center;
  }

  .rating__item {
    width: 100%;
    max-width: 400px;
    height: 480px;
  }

  .member_details_wrapper.pp {
    padding: 0 20px 20px 20px;
  }

  .member_photo {
    left: 1em;
    width: 140px;
    /* height: 170px; */
  }

  .member:nth-child(2n) .member_photo {
    right: 1em;
  }

  .member_details.two_third {
    margin: 0 0 0 170px;
    width: auto;
  }

  .member:nth-child(2n) .member_details.two_third {
    margin: 0 170px 0 0;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile Screens (576px) */
@media (max-width: 576px) {
  .services__item {
    padding: 30px 20px;
  }

  .plus .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .plus__item--title {
    width: 100%;
  }

  .team_page_section {
    padding: 80px 0 40px 0;
  }

  .team_page_title {
    font-size: 28px;
    line-height: 36px;
    margin-bottom: 40px;
  }

  .member_details_wrapper {
    min-height: auto;
  }

  .member_details_wrapper.pp {
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
  }

  .member_photo {
    position: static !important;
    transform: none !important;
    margin: 0 auto 0 auto !important;
    width: 140px;
    /* height: 170px; */
    z-index: 1;
    order: 1;
  }

  .member:nth-child(2n) .member_photo {
    right: auto !important;
    left: auto !important;
    transform: none !important;
  }

  .member_details.two_third,
  .member:nth-child(2n) .member_details.two_third {
    margin: 0;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 15px;
    backdrop-filter: blur(5px);
    order: 2;
  }

  .member_perks {
    padding-left: 0;
    list-style-type: none;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* Text formatting for static content pages (e.g. About) */
.content {
  line-height: 1.6;
}

.content p {
  margin-bottom: 1em;
}

.content h2,
.content h3,
.content h4 {
  margin-top: 1.5em;
  margin-bottom: 1em;
  font-weight: bold;
}

.content h3 {
  font-size: 1.15em;
}

.content ul,
.content ol {
  margin-bottom: 1em;
  padding-left: 2em;
}

.content li {
  margin-bottom: 0.5em;
}

.content div {
  margin-bottom: 1em;
}


/* Licenses grid */
.licences {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.licences li {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.licences li:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.licences a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.licences .licence_image {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.licences .licence_image img {
  max-width: 100%;
  max-height: 250px;
  object-fit: contain;
}

.licences .licence_desc {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

/* Responsive design for Contacts Page */
@media (max-width: 768px) {
  .ibw.pp .ib.fs {
    max-width: 100% !important;
  }

  .ibw.pp .ib.fs.steel {
    width: 100%;
    text-align: left !important;
    margin-top: 10px;
  }
}

/* Vacancies specific adjustments */
.spoiler_list.vacancies>li {
  margin-bottom: 0 !important;
}

h2.vacancy.pp {
  color: #000000 !important;
  margin-top: 0 !important;
  /* overrides .content h2 margin-top: 1.5em */
  margin-bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
  /* vertical centering */
  justify-content: center !important;
  /* horizontal centering */
  text-align: center !important;
}

@media (max-width: 1050px) {
  h2.vacancy.pp {
    padding-left: 30px !important;
    padding-right: 30px !important;
  }

  .salary.steel.clearfix {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0 !important;
  }

  .salary.steel.clearfix .conditions,
  .salary.steel.clearfix .sum {
    float: none !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}