.main {
  padding: 0 4rem 2rem 4rem;
}

.container {
  overflow: unset;
}

.services-page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 4rem;
}

.services-hero__container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  border-radius: 3.2rem;
  overflow: hidden;
}

.services-hero__content {
  padding: 4rem 0 4rem 4rem;
  z-index: 1;
  width: 100%;
}
/* Breadcrumb */
.breadcrumb {
  display: flex;
  gap: 0.8rem;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2.4rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: #fff;
}

/* Title */
.services-hero__title {
  font-size: 6.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2.4rem;
  line-height: 1.1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.services-hero__highlight {
  background-color: #d4c4a8;
  color: #221f1f;
  padding: 0 0.8rem;
  border-radius: 0.4rem;
  display: inline-block;
}

/* Text */
.services-hero__text {
  font-size: 1.6rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 3.2rem;
  max-width: 48rem;
}

/* Buttons */
.services-hero__buttons {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.btn--white {
  background-color: #fff;
  color: #221f1f;
  padding: 0.4rem 0.4rem 0.4rem 2.4rem;
  border-radius: 5rem;
  font-size: 1.6rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s;
  border: 0.15rem solid #fff;
  text-decoration: none;
}

.btn--white:hover {
  background-color: #fefef4;
  transform: translateY(-0.2rem);
}

.btn__icon {
  width: 4rem;
  height: 4rem;
  background-color: #221f1f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.3s;
}

.btn--white:hover .btn__icon {
  transform: rotate(37.5deg);
}

.btn--outline-white {
  background-color: transparent;
  color: #fff;
  padding: 1.4rem 2.4rem;
  border-radius: 5rem;
  font-size: 1.6rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s;
  border: 0.15rem solid rgba(255, 255, 255, 0.5);
  text-decoration: none;
  cursor: pointer;
}

.btn--outline-white:hover {
  background-color: #fff;
  color: #221f1f;
  border-color: #fff;
  transform: translateY(-0.2rem);
}

/* Image */
.services-hero__image {
  position: absolute;
  border-radius: 2.4rem;
  overflow: hidden;
  height: 100%;
  min-height: 40rem;
  width: 100%;
}

.services-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.process-section {
  padding: 5rem 4rem;
  background-color: #fefef4;
}

.process-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4rem;
  gap: 2rem;
}

.process-header__text {
  max-width: 55rem;
}

.process-header__text h2 {
  font-size: 4.8rem;
  font-weight: 700;
  color: #221f1f;
  margin-bottom: 1.6rem;
  line-height: 7.2rem;
}

.process-header__text p {
  font-size: 1.6rem;
  line-height: 2.4rem;
  color: #221f1f;
  font-weight: 500;
  margin-bottom: 0;
}

.process-header__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.4rem 0.4rem 0.4rem 2.4rem;
  border: 0.15rem solid #221f1f;
  border-radius: 5rem;
  font-size: 1.6rem;
  font-weight: 600;
  color: #221f1f;
  transition: all 0.3s;
  white-space: nowrap;
  width: 100%;
  max-width: 24.5rem;
  justify-content: space-between;
}

.process-header__btn:hover {
  background-color: #221f1f;
  color: #fefef4;
}

.process-header__btn svg {
  transition: all 0.3s;
}

.process-header__btn:hover svg {
  transform: rotate(38deg);
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 2.4rem;
  max-height: 56.8rem;
}

.process-item {
  background-color: #edebdf;
  padding: 1.6rem;
  border-radius: 2.4rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  height: 17.2rem;
}

.process-item__number {
  font-size: 3.2rem;
  font-weight: 700;
  color: #221f1f;
  line-height: 1;
  display: flex;
  justify-content: center;
  flex-direction: column;
  background-color: #d8d4c18a;
  border-radius: 3.2rem;
  align-items: center;
  height: 100%;
  width: 100%;
  max-width: 11.6rem;
}

.process-item__content h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #221f1f;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.process-item__content p {
  font-size: 1.6rem;
  line-height: 1.5;
  color: #545454;
  margin-bottom: 0;
}

.process-image {
  border-radius: 2.4rem;
  overflow: hidden;
  height: 100%;
}

.process-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.process-item:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}
.process-item:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}
.process-item:nth-child(3) {
  grid-column: 2;
  grid-row: 1;
}
.process-item:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
}
.process-item:nth-child(5) {
  grid-column: 2;
  grid-row: 3;
}
.process-image {
  grid-column: 1;
  grid-row: 3;
}

/* === CONSULTATION CTA SECTION === */
.consultation-section {
  padding: 4rem;
  background-color: #fefef4;
}

.consultation-container {
  position: relative;
  border-radius: 3.2rem;
  overflow: hidden;
  min-height: 48rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background Image */
.consultation-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.consultation-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dark Overlay */
.consultation-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 2;
  pointer-events: none;
}

/* Content */
.consultation-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 72rem;
  padding: 4rem;
}

.consultation-title {
  font-size: 4.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.6rem;
  line-height: 1.2;
}

.consultation-subtitle {
  font-size: 1.6rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 3.2rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

/* Form */
.consultation-form {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  align-items: center;
}

.consultation-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  width: 100%;
  max-width: 64rem;
}

.consultation-form__input {
  width: 100%;
  padding: 1.6rem 2.4rem;
  border: none;
  border-radius: 5rem;
  background-color: #fff;
  font-size: 1.6rem;
  font-family: "Montserrat", sans-serif;
  color: #221f1f;
  transition: all 0.3s;
}

.consultation-form__input::placeholder {
  color: #999;
}

.consultation-form__input:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(212, 196, 168, 0.5);
  background-color: #fefef4;
}

.consultation-form__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background-color: #fefef4;
  color: #221f1f;
  padding: 1.4rem 2.4rem;
  border-radius: 5rem;
  font-size: 1.6rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.consultation-form__btn:hover {
  background-color: #fff;
  transform: translateY(-0.2rem);
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.3);
}

.consultation-form__btn-icon {
  width: 4rem;
  height: 4rem;
  background-color: #221f1f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.consultation-form__btn:hover .consultation-form__btn-icon {
  transform: rotate(37.5deg);
}

/* === CALCULATOR SECTION === */
.calculator-section {
  padding: 4rem;
  background-color: #edebdf; /* Бежевый фон */
  font-family: sans-serif;
  border-radius: 4rem;
  margin: 3.2rem 0 11rem;
}

/* Header */
.calculator-header {
  margin-bottom: 2rem;
  display: flex;
  width: 100%;
  max-width: 65.2rem;
}

.calculator-header svg {
  width: 2.4rem;
  height: 2.4rem;
}

.calculator-description {
  display: flex;
  width: 100%;
  max-width: 65.2rem;
}

.calculator-description svg {
  width: 2.4rem;
  height: 2.4rem;
}

.calculator-title {
  font-size: 4rem;
  font-weight: 700;
  color: #2c2a24;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  line-height: 4.8rem;
  max-width: 62.4rem;
}

.calculator-subtitle {
  font-size: 1.6rem;
  color: #221f1f;
  line-height: 2.4rem;
  max-width: 62.4rem;
}

.calc-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #d8d4c1;
  width: max-content;
  border-radius: 2rem 2rem 0 0;
}
.calc-tabs-wrapper {
  display: flex;
}
.calc-tabs__list {
  display: flex;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
}

.calc-tab {
  border: none;
  border-radius: 2rem;
  cursor: pointer;
  font-size: 1.6rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
  font-family: "Montserrat", sans-serif;
  background-color: transparent;
}

.calc-tab.active {
  background-color: #edebdf;
  color: #221f1f;
}

.calc-tab .remove-tab {
  margin-left: 0.2rem;
  font-size: 1.2rem;
  line-height: 0.5;
}

.calc-tabs__add {
  background: none;
  border: none;
  cursor: pointer;
  color: #2c2a24;
  transition: 0.3s;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  padding-left: 2.4rem;
}
.calc-tabs__add:hover {
  opacity: 1;
}

.calc-tabs__add span {
  font-size: 1.6rem;
  color: #221f1f;
  font-weight: 600;
}

/* Calculator Body (Accordion) */
.calc-category {
  border-radius: 4rem;
  overflow: hidden;
  background-color: #edebdf;
  padding: 1.6rem 0;
}
.calculator-wrapper {
  background-color: #d8d4c1;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  border-radius: 0 3.2rem 3.2rem 3.2rem;
}

h3.calc-section-title {
  font-size: 2.4rem;
  color: #221f1f;
}
.calc-cat-header {
  padding: 0.8rem 2.4rem 0.8rem 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
  color: #2c2a24;
  align-content: center;
  align-items: center;
  align-self: center;
}

.calc-cat-header .icon {
  transition: transform 0.3s;
}
.calc-cat-header.open .icon {
  transform: rotate(180deg);
}

span.calc-group-title {
  font-size: 1.6rem;
  color: #221f1f;
}

.calc-cat-title span {
  font-size: 2rem;
  font-weight: 600;
}

.calc-cat-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.4rem;
}

.calc-cat-body {
  display: none;
  /* padding: 0 1rem 1rem; */
}
.calc-cat-body.open {
  display: block;
}

.calc-group {
  padding: 0 1.4rem 0.2rem 8rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  background-color: #edebdf;
  border-radius: 0.8rem;
}
.calc-group-main.open,.calc-group-main {
    max-width: 104rem;
}

.calc-item-name-col {
    width: 54.4rem;
}

.calc-group-title-col {
    width: 56.8rem;
}

span.calc-grid-title {
    width: 16rem;
    font-size: 1.6rem;
    color: #221F1F;
}
.calc-group-header {
  padding: 0.8rem 1.4rem 0.8rem 0;
  border-radius: 0.8rem;
  cursor: pointer;
  display: grid; /* This header itself is a grid for title and grid-header */
  grid-template-columns: 3fr 3fr; /* Title and column headers */
  gap: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  align-items: center;
}

.calc-group-top-row {
  display: grid;
  grid-template-columns: 1fr auto; /* Header content and icon */
  align-items: center;
  padding: 0.8rem 1.4rem; /* Apply padding here */
}

.calc-group-icon-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem 0;
}

.calc-group-header .calc-grid-header {
  opacity: 0;
  visibility: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
  width: 100%;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.calc-group-main.open .calc-grid-header {
  opacity: 1;
  visibility: visible;
}

.calc-group-icon-col .icon {
  transition: transform 0.3s;
}
.calc-group-main.open + .calc-group-icon-col .icon {
  transform: rotate(180deg);
}

.calc-group-body {
  display: none;
  padding: 1rem 2.4rem 1rem 2.4rem;
  border-radius: 0 0 0.8rem 0.8rem;
}
.calc-group-main.open .calc-group-body {
  display: block;
  background-color: #DEDBCC;
  background-#DEDBCC: ;
  border-radius: 2.4rem;
}

/* Table Grid for Items */
.calc-grid-header {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 1fr;
  gap: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #d4c4a8;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #545454;
  margin-bottom: 0.5rem;
}

.calc-item-row {
  display: grid;
  grid-template-columns: 3fr 3fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.calc-item-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  align-items: center;
}
span.calc-grid-title.total {
    width: 10rem;
    text-align: right;
}
.calc-item-name {
  font-weight: 500;
  font-size: 1.6rem;
  color: #221F1F;
  font-family: 'Montserrat',sans-serif;
}

.calc-input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #d4c4a8;
  border-radius: 10rem;
  text-align: center;
  background: #fff;
  width: 16rem;
  font-size: 1.6rem;
  color: #7C7C7C;
}

.calc-total-cell {
  font-weight: 500;
  text-align: right;
  font-size: 1.6rem;
  color: #221F1F;
}

.calc-item-title {
    font-size: 1.6rem;
    font-family: 'Montserrat',sans-serif;
}

.group-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-top: 1px solid #edebdf;
  font-weight: 700;
  font-size: 1rem;
  color: #2c2a24;
}

.group-total-val {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: 'Montserrat',sans-serif;
}

/* Footer */
.calc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 4rem;
  border-top: 1px solid #EDEBDF;
  flex-direction: column;
  gap: 1.6rem;
}

.calc-total {
  font-size: 2.4rem;
  font-weight: 800;
  text-transform: uppercase;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  color: #221F1F;
  font-weight: 700;
  font-family: 'Montserrat',sans-serif;
}
.calc-total span:last-child {
  margin-left: 1rem;
}

.calc-actions {
  gap: 1rem;
  width: 100%;
  align-items: center;
  display: flex;
  justify-content: flex-end;
}

.btn-action {
  padding: 0.4rem 0.4rem 0.4rem 2.5rem;
  border: 1px solid #221F1F;
  background: transparent;
  cursor: pointer;
  font-size: 1.6rem;
  transition: 0.3s;
  width: 100%;
  max-width: 20rem;
  border-radius: 4rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.btn-action:hover {
  background: #2c2a24;
  color: #fff;
}
.btn-action svg {fill: #292929;stroke: #fff;stroke-width: 0;}

.btn-action:hover svg {fill: #ffffff;stroke: #292929;}

div#calcBody {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding-bottom: 2.4rem;
}
.calc-group-icon-col_mobile {
    display: none;
}

@media (max-width: 1023px) {
  .main {
    padding: 2.4rem 1.6rem 1.1rem;
  }
  .services-page-hero {
    padding: 0;
  }

  .services-hero__container {
    grid-template-columns: 1fr;
    gap: 3.2rem;
  }

  .services-hero__content {
    order: 1;
    padding: 2.4rem 1.6rem;
  }

  .breadcrumb{
    font-size: 1.4rem;
  }
  .services-hero__image {
    order: 2;
    min-height: 28rem;
    border-radius: 2rem;
  }

  .services-hero__title {
    font-size: 3.2rem;
  }

  .services-hero__text {
    font-size: 1.6rem;
    margin-bottom: 2.4rem;
  }

  .services-hero__buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn--white {
    width: 100%;
    justify-content: space-between;
  }
  .btn--outline-white {
   justify-content:center; 
  }
  
  .process-section {
    padding: 4rem 0;
  }

  .process-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 2.4rem;
    margin-bottom: 3.2rem;
  }

  .process-header h2 {
    font-size: 3.2rem;
  }

  .process-header__btn {
    width: 100%;
    justify-content: space-between;
    max-width: 100%;
  }

  .process-grid {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    max-height: 100%;
  }

  .process-item {
    padding: 0.8rem;
    gap: 1.6rem;
    height: 100%;
    border-radius: 2rem;
  }

  .process-item__number {
    font-size: 2.4rem;
    max-width: 6.3rem;
    width: 100%;
    height: 11.4rem;
    border-radius: 1.6rem;
    font-weight: 500;
  }

  .process-item__content h3 {
    font-size: 1.6rem;
    line-height: 2.4rem;
    font-weight: 600;
  }

  .process-item__content p {
    font-size: 1.4rem;
    line-height: 2.4rem;
  }

  .process-image {
    order: 99;
    height: 12rem;
    width: 100%;
    margin-top: 0rem;
  }
  .consultation-section {
    padding: 2.4rem 0;
  }

  .consultation-container {
    border-radius: 2.4rem;
    min-height: auto;
  }

  .consultation-content {
    padding: 3.2rem 2.4rem;
  }

  .consultation-title {
    font-size: 3.2rem;
  }

  .consultation-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.4rem;
  }

  .consultation-form__row {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .consultation-form__input {
    padding: 1.2rem 2rem;
  }

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

  .consultation-content {
    padding: 2.4rem 1.6rem;
  }

  .consultation-title {
    font-size: 3.2rem;
    text-align: left;
  }

  .consultation-subtitle {
    font-size: 1.4rem;
    text-align: left;
  }

  .consultation-form__btn {
    padding: 0.4rem 0.4rem 0.4rem 2.4rem;
    justify-content: space-between;
  }

  .consultation-form__btn-icon {
    width: 3.6rem;
    height: 3.6rem;
  }

  /* .calc-grid-header,
  .calc-item-row {
    grid-template-columns: 2fr 1fr 1fr;
  } */

  .calc-grid-header span:last-child,
  .calc-item-row .calc-total-cell {
    display: none;
  }

  /* .calc-grid-header,
  .calc-item-row {
    display: grid;
    grid-template-columns: 3fr 3fr;
    min-width: 500rem;
  } */

  .calc-body {
    overflow-x: auto;
  }

  .calculator-section {
    padding: 2.4rem 1.6rem;
    margin-top: 2.4rem;
    margin-bottom: 4rem;
  }
  .calculator-title {
  font-size: 3.2rem;
  line-height: 3.2rem;
}
.calculator-header svg {
  width: 2.4rem;
  height: 2.4rem;
}
.calculator-header {
    display: flex;
    flex-direction: row;
    gap: 1.6rem;
}
.calculator-header__content {
    width: 100%;
}
.calculator-description{
  margin-bottom: 4rem;
}

.calculator-wrapper {
  padding: 1.6rem;
}
.calc-category {
    border-radius: 1.6rem;
}
.calc-cat-title img {
    width: 4rem;
    height: 4rem;
}
.calc-cat-title span{
  font-size: 1.6rem;
}
.calc-actions {
    display: flex;
    flex-direction: column;
}
button#downloadPDF,button#printBtn {
    width: 100%;
    max-width: 100%;
}
.calc-group {
    padding: 0.8rem;
}


.calc-group-main.open, .calc-group-main {
    width: 100%;
    max-width: 100%;
}
.calc-group-title-col {
    width: 100%;
}
.calc-item-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  min-width: auto;
}
.calc-group-header .calc-grid-header {
    display: none;
}

.calc-item-name-col,.calc-group-title-col {
    width: 100%;
}
.calc-item-grid {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  width: 100%;
}
.calc-group-icon-col_mobile {
    display: block;
}
.calc-group-icon-col {
  display: none;
}
.calc-group-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0.8rem 0.8rem 0.8rem 0;
}
input.calc-input {
    width: auto;
    max-width: 12.5rem;
}
.calc-cat-header {
  padding: 1.6rem;
}

.calc-group-body {
  padding: 1.2rem;
}
.calc-tabs__list {
    flex-direction: column;
}
button#addNewCalcBtn {
    padding-left: 1rem;
}
}
