.service {
  margin: 0 auto;
  max-width: 1440px;
  margin-top: 150px;
}

@media (min-width: 768px) {
  .service {
    margin-top: 0;
  }
}

.service__heading {
  position: relative;
}

@media (min-width: 768px) {
  .service__heading {
    height: 450px;
  }
}

@media (min-width: 1024px) {
  .service__heading {
    height: 660px;
    margin: 0 60px;
  }
}

.service__heading--title {
  font-size: 32px;
  text-align: center;
}

@media (min-width: 768px) {
  .service__heading--title {
    margin-top: 100px !important;
    font-size: 76px;
    text-align: left;
    margin: 0 60px;
    padding-top: 10px;
    padding-bottom: 10px;
    color: var(--color-text-secondary);
  }
}

@media (min-width: 1024px) {
  .service__heading--title {
    padding-bottom: 10px;
  }
}

.service__heading--buttons {
  margin: 0 30px;
  display: flex;
  justify-content: center;
  column-gap: 10px;
}
.service__heading--block {
  margin: 0 0px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  column-gap: 10px;
  align-items: center;
}
@media (min-width: 768px) {
  .service__heading--buttons {
    justify-content: left;
    margin: 0 60px;
  }
  .service__heading--block {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 0 60px;
    align-items: center;
  }
}

.service__heading--button {
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #000;
  cursor: pointer;
  width: 200px;
  font-size: 12px;
  max-height: 80px;
  font-family: inherit;
  background-color: rgba(217, 217, 217, 0.3);
  padding: 12px 15px;
  border-radius: 50px;
  font-weight: 700;
  position: relative;
  border: 2px solid transparent;
  background-image: linear-gradient(#f3f3f3, #f3f3f3),
    linear-gradient(90deg, rgba(219, 34, 44, 1) 0%, rgba(13, 102, 208, 1) 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

@media (min-width: 768px) {
  .service__heading--button {
    font-size: 16px;
    width: 250px;
    max-height: 80px;
  }
}

.service__heading--image {
  display: none;
}

@media (min-width: 768px) {
  .service__heading--image {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 0 50px 50px;
  }
}

.service__about {
  padding: 0 60px;
}
.service__about-table {
  padding: 0 0px;
  display: flex;
  flex-direction: column;
  font-size: 9px;
}
.service__about--title {
  display: none;
}

@media (min-width: 768px) {
  .service__about--title {
    display: block;
    font-size: 36px;
  }
  .service__about-table {
    padding: 0 0px;
    display: flex;
    flex-direction: column;
    font-size: 10px;
  }
  .styled-table th,
  .styled-table td {
    padding: 12px 2px;
  }
}

@media (min-width: 1024px) {
  .service__about--title {
    font-size: 44px;
  }
  .service__about-table {
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    font-size: 20px;
  }
}

.service__about--desc {
  text-align: center;
  font-size: 16px;
}

@media (min-width: 768px) {
  .service__about--desc {
    text-align: left;
    font-size: 20px;
    font-weight: 300;
  }
}

@media (min-width: 1024px) {
  .service__about--desc {
    font-size: 30px;
  }
}

.service__about--stats {
}
.service__about--statsheader {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2px;
}
@media (min-width: 768px) {
  .service__about--stats {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }
  .service__about--statsheader {
    display: flex;
    flex-direction: column;
    gap: 2px;
    justify-content: space-between;
  }
}

.service__about--stat {
  text-align: center;
}
.service__about--statheader {
  text-align: center;
}
.service__about--stat-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 15px;
}
.service__about--stat-titleheader {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 5px;
}
@media (min-width: 1024px) {
  .service__about--stat-title {
    font-size: 80px;
  }
  .service__about--stat-titleheader {
    font-size: 40px;
  }
}

.service__about--stat-desc {
  font-size: 16px;
}
.service__about--stat-descheader {
  font-size: 12px;
}
@media (min-width: 1024px) {
  .service__about--stat-desc {
    font-size: 30px;
  }
  .service__about--stat-descheader {
    font-size: 15px;
  }
}

.service__specificity {
  padding: 0 30px;
}

@media (min-width: 768px) {
  .service__specificity {
    padding: 0 60px;
  }
}

.service__specificity--title {
  font-size: 32px;
  text-align: center;
}

@media (min-width: 768px) {
  .service__specificity--title {
    font-size: 36px;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .service__specificity--title {
    font-size: 44px;
  }
}

.service__specificity--desc {
  text-align: center;
  font-size: 16px;
}

@media (min-width: 768px) {
  .service__specificity--desc {
    text-align: left;
    font-size: 24px;
    font-weight: 300;
  }
}

@media (min-width: 1024px) {
  .service__specificity--desc {
    font-size: 30px;
  }
}

.service__boxes {
  display: grid;
  gap: 20px;
  margin-bottom: 10px;
}

@media (min-width: 768px) {
  .service__boxes {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 20px;
  }
}

.service__box {
  background-color: #f7f9fb;
  padding: 20px;
  display: grid;
  grid-template-columns: 33px 1fr;
  grid-template-rows: 33px 1fr;
  column-gap: 15px;
  row-gap: 20px;
  border-radius: 25px;
}
.excellence__box {
  background-color: #f7f9fb;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 33px 1fr;
  column-gap: 15px;
  row-gap: 20px;
  border-radius: 25px;
}
@media (min-width: 768px) {
  .service__box {
    background-color: #f7f9fb;
    padding: 20px 0 20px 20px;
    display: grid;
    grid-template-columns: 33px 1fr 100px;
    grid-template-rows: 33px 1fr;
    column-gap: 15px;
    row-gap: 20px;
    border-radius: 25px;
  }
  .excellence__box {
    background-color: #f7f9fb;
    padding: 20px 0 20px 20px;
    display: grid;
    grid-template-columns: 5px 1fr 5px;
    grid-template-rows: 33px 1fr;
    column-gap: 15px;
    row-gap: 20px;
    border-radius: 25px;
  }
}

@media (min-width: 1024px) {
  .service__box {
    padding: 30px 0 30px 30px;
  }
  .excellence__box {
    padding: 30px 15px 30px 30px;
  }
}

.service__box--title {
  grid-column: 2;
  margin: 0;
  align-self: center;
}
.service__box--excellence {
  grid-column: 2;
  margin: 0;
  align-self: center;
  justify-self: center;
  display: block;
  font-size: 1.17em;
  font-weight: bold; 
  margin-bottom: 0.5em; 
}
details {
  padding: 10px;
  background-color: #f7f9fb;
  border-radius: 5px;
  margin: 5px auto;
}
.styled-table {
  border-collapse: collapse;
  margin: 25px 0;
  font-family: sans-serif;
  min-width: 300px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}
.styled-table thead tr {
  background-color: #4393f6;
  color: #ffffff;
  text-align: left;
}
.styled-table th,
.styled-table td {
  padding: 10px 1px;
}
.styled-table tbody tr {
  border-bottom: 1px solid #dddddd;
}

.service__about--list ol {
  font-size: 24px;
  line-height: 1.6;
  margin-left: 1.5em;
  padding-left: 0;
  text-align: justify;
  list-style-position: outside;
}

.service__about--list li {
  margin-bottom: 1.2em;
  word-break: break-word;
}

/* 📱 Адаптация под мобильные устройства */
@media (max-width: 768px) {
  .service__about--list ol {
    font-size: 18px;
    line-height: 1.5;
    margin-left: 1.2em;
  }
}

/* 🖥️ Большие экраны — без ограничения ширины */
@media (min-width: 1200px) {
  .service__about--list ol {
    padding-right: 2vw;
    padding-left: 2vw;
  }
}

.styled-table tbody tr:nth-of-type(even) {
  background-color: #f3f3f3;
}

.styled-table tbody tr:last-of-type {
  border-bottom: 2px solid #4393f6;
}
.styled-table tbody tr.active-row {
  font-weight: bold;
  color: #4393f6;
}

@media (min-width: 1024px) {
  .service__box--title {
    font-size: 35px;
  }
  .service__box--excellence {
    font-size: 25px;
    grid-column: 2;
  }
}

.service__box--circle {
  grid-column: 1;
  font-size: 14px;
  font-weight: 500;
  border: 1px #000000 solid;
  border-radius: 50%;
  width: 33px;
  height: 33px;
  margin: 0;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service__box--desc {
  grid-column: 1/3;
  grid-row: 2;
  margin: 0;
}
.service__box--exc {
  grid-column: 1/3;
  grid-row: 2;
  margin: 0;
}
@media (min-width: 1024px) {
  .service__box--desc {
    font-size: 25px;
    grid-column: 2;
    grid-row: 2;
  }
  .service__box--exc {
    font-size: 20px;
    grid-column: 2;
    grid-row: 2;
  }
}

.service__box--image {
  display: none;
}

@media (min-width: 768px) {
  .service__box--image {
    display: block;
    width: 100px;
    object-fit: contain;
    grid-row: 1/3;
    align-self: center;
  }
}

.service__feedback {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.service__feedback--link {
  cursor: pointer;
  padding: 15px 40px;
  font-size: 14px;
  color: #fff;
  background-color: #4393f6;
  border-radius: 50px;
  text-decoration: none;
  align-items: center;
  display: flex;
  width: max-content;
  font-weight: 700;
  text-align: center;
}

@media (min-width: 768px) {
  .service__feedback--link {
    font-size: 24px;
  }
}

.blue {
  color: var(--color-text-accent);
}

.gradient {
  background: linear-gradient(
    90deg,
    rgba(219, 34, 44, 1) 55%,
    rgba(13, 102, 208, 1) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  width: max-content;
}

/* Стили для блока договора */
.service__contract {
  margin: 30px 0;
  padding: 0 60px;
}

.service__contract--item {
  border-radius: 25px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.service__contract--icon {
  width: 24px;
  height: 24px;
}

.service__contract--link {
  color: #515151;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.service__contract--link:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .service__contract--link {
    font-size: 20px;
  }
}
