.top_main_text h1.text_ttl {
  margin: 0;
}

.top_main_text h1 .text_subttl {
  display: block;
  margin-top: 5px;
  color: #000e1a;
  font-weight: 400;
}

.advtxt .service-summary {
  margin-top: 10px;
}

.company-home {
  padding: 0 16px 2rem;
}

.company-home p {
  max-width: 65ch;
  margin: 1rem auto;
}

.company-home a {
  display: inline-block;
  margin: 0.25rem 0.5rem;
  text-decoration: underline;
}

.branded-about > .width50 {
  vertical-align: middle;
}

.about-wordmark {
  padding: 20px;
  text-align: center;
}

.about-wordmark img {
  width: min(210px, 100%);
  height: auto;
}

.services-intro {
  margin-bottom: 28px;
}

.services-intro h2.block_ttl {
  margin: 0;
}

@media (max-width: 979px) {
  .bottom_menu_block .footer-logo {
    display: block;
    width: 170px;
    margin: 0 auto 18px;
  }

  .bottom_menu_block .footer-logo + .menu_block {
    width: min(608px, 100%);
    margin-inline: auto;
  }
}

@media (max-width: 755px) {
  .top_main {
    min-height: 280px;
  }

  .top_main > .container {
    padding: 24px 0;
  }

  .branded-about > .width50 {
    width: 100%;
  }

  .branded-about .about_txt {
    padding-right: 0;
  }

  .about-wordmark img {
    width: min(160px, 100%);
  }
}
.top_main {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 87vh;
}

.top_main > .container {
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 40px 0;
}

.top_main_text {
  margin-top: 0;
}

.top_main_bottom {
  position: relative;
  margin-top: auto;
}

.top_main > .video {
  width: 100%;
  height: 100%;
  inset: 0;
  transform: none;
  object-fit: cover;
}

/* ---------- UI polish: shared edges, type scale and spacing ---------- */
:root {
  --av-gutter: 48px;
  --av-grey: #6f6f6f;
  --av-blue: #4879b0;
  --av-pink: #ea4989;
  --av-rule: #d5dbe1;
}

/* Page shell: the footer stays at the bottom, and below the fixed header on 404 */
.wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrap > * {
  flex-shrink: 0;
}

.wrap > .footer {
  margin-top: auto;
}

#header + .footer {
  border-top: 175px solid #fff;
}

/* Brand mark beside the wordmark (artwork spans x 175-283, y 31-429 of its 460 box) */
.logo_block {
  --mark: 70px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.logo_block::before {
  content: "";
  flex: none;
  width: calc(var(--mark) * 0.272);
  height: var(--mark);
  background: url("/images/aventel-mark.svg") no-repeat;
  background-size: calc(var(--mark) * 1.156);
  background-position: calc(var(--mark) * -0.44) calc(var(--mark) * -0.078);
}

.logo_block img {
  display: block;
  min-width: 0;
}

.footer .logo_block {
  --mark: 46px;
  gap: 11px;
}

.footer .logo_block::before {
  filter: brightness(0) invert(1);
}

/* Type */
h1 {
  margin-top: 16px;
  line-height: 1.15;
}

h2,
.block_ttl {
  color: var(--av-grey);
  line-height: 1.15;
}

.hexagon {
  position: relative;
  top: -0.08em;
  vertical-align: middle;
}

.hexagon img {
  display: block;
}

.company-home h2.block_ttl {
  margin: 56px 0 28px;
}

.services-intro h2.block_ttl {
  margin-bottom: 14px;
  color: var(--av-blue);
  text-transform: none;
}

.company-home a {
  color: var(--av-blue);
  text-underline-offset: 4px;
}

.company-home a:hover,
.breadcrumbs a:hover,
.contact_block a:hover {
  color: var(--av-pink);
}

.contact_block {
  max-width: 100%;
}

/* Hero */
.top_main_text {
  background: rgba(255, 255, 255, 0.8);
}

.top_main_bottom .width30:last-child {
  border-right: 0;
}

.top_main_bottom .email {
  color: #5f5f5f;
}

/* Service tiles */
.advent_block .row {
  display: flex;
  gap: 5px;
  margin-bottom: 5px;
}

.advent_block .row:last-child {
  margin-bottom: 0;
}

.advent_block .advantage {
  flex: 0 0 calc(50% - 2.5px);
  width: auto;
  min-width: 0;
  margin: 0;
}

.advent_block .advimg {
  height: auto;
  min-height: 286px;
}

.advent_block .advimg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.advent_block .advtxt,
.advent_block .lastrow .advtxt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 75px;
}

.advent_block .advtxt p {
  margin-bottom: 10px;
  font-size: 22px;
}

.advent_block .advtxt ul {
  margin-bottom: 0;
}

.advent_block .advtxt ul li + li {
  margin-top: 5px;
}

.advtxt .service-summary {
  margin-top: 0;
  line-height: 1.4;
}

/* Forms */
.order_bottom_form {
  height: auto;
}

.order_bottom_form .inputtxt,
.order_bottom_form textarea,
.form_order_block .inputtxt {
  width: 100%;
  border-color: #a7a7a7;
  color: #333e49;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.form_order_block .inputtxt.width50 {
  width: 49%;
}

.inputtxt::placeholder,
.order_bottom_form .inputtxt::placeholder,
.order_bottom_form textarea::placeholder {
  color: var(--av-grey);
  opacity: 1;
}

.inputtxt.search {
  font-weight: 400;
}

.order_bottom_form .inputtxt:focus,
.order_bottom_form textarea:focus,
.form_order_block .inputtxt:focus,
.inputtxt.search:focus {
  border-color: #409dd6;
  outline: 1px solid #409dd6;
}

.submit,
.bottom-button {
  color: #333e49;
  font-size: 18px;
  font-weight: 700;
}

.submit {
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.submit:hover {
  border-color: var(--av-pink);
  color: var(--av-pink);
}

/* Keyboard focus */
a:focus-visible,
button:focus-visible,
input[type="submit"]:focus-visible {
  outline: 2px solid var(--av-pink);
  outline-offset: 3px;
}

/* Catalogue */
.prod_wrap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.production .prod_wrap .prod_blk {
  float: none;
  width: auto;
  height: auto;
  margin: 0 !important;
}

.production .prod_wrap .prod_blk a {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.production .prod_wrap .prod_img {
  flex: none;
  width: 100%;
  aspect-ratio: 254 / 183;
}

.production .prod_wrap .prod_img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.production .prod_wrap .prod_ttl_block {
  position: static;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 56px;
  padding: 8px 12px;
}

.production .prod_wrap .prod_ttl {
  position: static;
  transform: none;
  line-height: 1.15;
}

.search_order_block > form {
  max-width: 100%;
}

.inputtxt.search {
  margin-left: 0;
}

.list_column {
  font-size: 24px;
}

.list_column ul li {
  margin-bottom: 22px;
  padding-left: 50px;
  background-position: 0 0;
}

/* Product sheet */
.prod_ttx {
  padding-left: 0;
  border-bottom-color: var(--av-rule);
}

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

.prod_ttx_name,
.prod_ttx_txt {
  padding-right: 12px;
}

.ui-selectmenu-button.ui-button.cat_select {
  width: 100%;
  font-size: 24px;
  line-height: 51px;
}

.cat_select .ui-widget-content {
  font-size: 24px;
}

/* Nothing fills this list on the static site, so do not show an empty frame */
.watched_block:not(:has(.owl-item)) {
  display: none;
}

/* Footer */
.bottom_address {
  margin-left: 0;
  line-height: 1.3;
}

.bottom_address > p,
.bottom_copyright > p {
  margin-bottom: 5px;
  font-size: 16px;
  line-height: 1.3;
}

.bottom_copyright {
  margin-top: 0;
  margin-right: 0;
}

@media (min-width: 1280px) {
  .phone_top_block {
    padding: 0;
  }

  .phone_top_block .container {
    padding: 0 var(--av-gutter);
  }

  .phone_top,
  .phone_top:last-child {
    width: auto;
    padding: 0;
    line-height: 52px;
    text-align: left;
  }

  #header .white_block {
    display: flex;
    align-items: center;
    height: 120px;
    padding: 0 var(--av-gutter);
  }

  #header .phone_top_block + .white_block {
    height: 123px;
  }

  #header .logo_block {
    flex: none;
    margin-left: 0;
  }

  #header .logo_block img {
    width: 340px;
  }

  #header .menu_mob {
    display: flex !important;
    flex: 1;
    align-items: center;
  }

  #header .menu_block {
    flex: 1;
    width: auto;
    margin: 14px 0 0;
    padding: 0 56px;
  }

  #header .menu_block > ul,
  .bottom_menu_block .menu_block > ul {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: auto;
  }

  #header .menu_block > ul::after,
  .bottom_menu_block .menu_block > ul::after {
    display: none;
  }

  #header .menu_block li,
  .bottom_menu_block .menu_block li {
    padding-bottom: 0;
  }

  .menu_block a {
    padding-bottom: 4px;
  }

  #header .lang_block {
    float: none;
    margin-top: 14px;
  }

  .top_main > .container {
    padding: 40px 0;
  }

  .top_main_text {
    padding: 48px;
  }

  .top_main_bottom {
    padding: 28px 0;
  }

  .advent_block {
    padding-bottom: 72px;
  }

  .mainpage .advent_block {
    padding-top: 5px;
  }

  .company-home {
    padding-bottom: 48px;
  }

  .company-home h2.block_ttl {
    font-size: 48px;
  }

  .services-intro h2.block_ttl {
    font-size: 40px;
  }

  .order_bottom_block {
    padding: 91px 0;
  }

  .order_bottom_form {
    padding: 64px 48px;
  }

  .order_bottom_ttl {
    margin-bottom: 36px;
  }

  .production {
    margin-top: 20px;
  }

  .list_column > ul {
    columns: 2;
    column-gap: 48px;
  }

  .list_column ul li {
    break-inside: avoid;
  }

  .prod_block {
    display: flex;
    gap: 48px;
    margin: -20px 0 0;
    padding-bottom: 56px;
  }

  .prod_ttx_block {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  .cat_order_block {
    flex: none;
    width: 520px;
    padding: 15px 0 0;
  }

  .form_order_block {
    padding: 35px 36px 40px;
  }

  .submit {
    margin-top: 24px;
  }

  .bottom_menu_block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 36px var(--av-gutter);
  }

  .bottom_menu_block .logo_block,
  .bottom_menu_block .menu_block {
    margin: 0;
  }

  .footer_bottom {
    padding: 30px var(--av-gutter);
  }
}

@media (min-width: 1280px) and (max-width: 1347px) {
  .advent_block {
    padding-right: var(--av-gutter);
    padding-left: var(--av-gutter);
  }

  .content_block .advent_block {
    padding-right: 0;
    padding-left: 0;
  }
}

@media (max-width: 1279px) {
  #header + .footer {
    border-top-width: 65px;
  }

  #header .white_block {
    display: flex;
    align-items: center;
    height: 65px;
    padding: 0;
  }

  #header .logo_block {
    --mark: 48px;
    gap: 10px;
  }

  #header .logo_block::before {
    filter: brightness(0) invert(1);
  }

  #toTop {
    bottom: 70px;
  }

  .services-intro h2.block_ttl,
  .company-home h2.block_ttl {
    font-size: 36px;
  }

  .company-home h2.block_ttl .hexagon {
    width: 50px;
  }

  .order_bottom_block {
    padding: 72px 16px;
  }

  .order_bottom_form {
    max-width: 100%;
    padding: 48px 38px;
  }

  .advent_block {
    padding-bottom: 56px;
  }

  .advent_block .advtxt,
  .advent_block .lastrow .advtxt {
    padding: 32px 52px;
  }

  .content_block .advent_block {
    padding-right: 0;
    padding-left: 0;
  }

  .prod_wrap {
    grid-template-columns: repeat(3, 1fr);
    width: auto;
  }

  .search_order_block {
    margin-top: 0;
    padding-bottom: 24px;
  }

  .production {
    margin-top: 0;
  }

  .content_block {
    padding-right: 36px;
  }

  .footer_bottom {
    padding-right: 36px;
    padding-left: 36px;
  }

  .submit {
    margin-top: 8px;
  }

  .form_order_block {
    padding-bottom: 36px;
  }

  .prod_ttx_name {
    width: 37%;
  }

  .cat_order_block {
    max-width: 100%;
    margin-top: 24px;
  }

  .list_column {
    width: 100%;
  }
}

@media (max-width: 979px) {
  .content_block {
    padding-right: 16px;
  }

  .footer_bottom {
    padding-right: 0;
    padding-left: 0;
  }

  .bottom_menu_block .footer-logo {
    display: flex;
    width: 200px;
  }

  .footer .logo_block {
    --mark: 32px;
    gap: 8px;
  }

  .bottom_address {
    margin-left: 15px;
  }

  .bottom_copyright {
    margin-right: 15px;
  }

  .advent_block .advtxt,
  .advent_block .lastrow .advtxt {
    padding: 28px 36px;
  }
}

@media (max-width: 755px) {
  #header + .footer {
    border-top-width: 48px;
  }

  #header .white_block,
  #mob_menu_icon {
    height: 48px;
  }

  #mob_menu_icon span {
    top: 22px;
  }

  .content.mainpage,
  .content.page {
    margin-top: 48px;
  }

  #header .logo_block {
    --mark: 34px;
    width: 176px;
    gap: 8px;
  }

  .top_main {
    min-height: 420px;
  }

  .content_block {
    padding-right: 12px;
  }

  .footer_bottom {
    padding-right: 40px;
    padding-left: 40px;
  }

  .top_main > .container {
    align-items: flex-end;
    padding: 24px 16px;
  }

  .top_main_text {
    width: 100%;
    max-width: 340px;
    margin: 0;
    padding: 24px;
  }

  .text_ttl {
    font-size: 28px;
  }

  .text_subttl {
    font-size: 21px;
  }

  .text_text {
    margin-top: 12px;
    font-size: 16px;
  }

  .advent_block .row {
    display: block;
    margin-bottom: 0;
  }

  .advent_block .advtxt,
  .advent_block .lastrow .advtxt {
    width: 100%;
    min-height: 0;
    padding: 32px 16px;
  }

  .company-home h2.block_ttl,
  .services-intro h2.block_ttl {
    font-size: 26px;
  }

  .company-home h2.block_ttl {
    margin: 36px 0 16px;
  }

  .company-home h2.block_ttl .hexagon {
    width: 33px;
  }

  h1 {
    margin-top: 4px;
  }

  .order_bottom_block {
    padding: 40px 16px;
  }

  .order_bottom_form {
    width: 100%;
    padding: 32px 20px;
  }

  .order_bottom_form .inputtxt {
    height: 46px;
  }

  .order_bottom_ttl {
    font-size: 26px;
  }

  .prod_wrap {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .production .prod_wrap .prod_blk:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  /* The odd last tile spans both columns. Give its photo a fixed height instead of aspect-ratio + max-height:
     Safari turns that pair into a narrower, left-aligned box and the title row shifts with it. */
  .production .prod_wrap .prod_blk:last-child:nth-child(odd) .prod_img {
    aspect-ratio: auto;
    height: 150px;
    max-height: none;
  }

  .production .prod_wrap .prod_ttl_block {
    font-size: 16px;
  }

  .prod_block {
    margin: 0;
  }

  .prod_ttx {
    padding: 8px 0;
  }

  .prod_ttx_name,
  .prod_ttx_txt {
    width: 100%;
  }

  .cat_order_block {
    width: 100%;
  }

  .form_order_block {
    padding: 24px 16px;
  }

  .form_order_block .inputtxt.width50 {
    width: 100%;
  }

  .list_column {
    font-size: 21px;
  }

  .footer .logo_block {
    justify-content: center;
  }

  .bottom_address {
    margin: 0 0 20px;
  }

  .bottom_copyright {
    margin: 0;
  }
}

/* ---------- Emphasis ---------- */
.about_txt strong,
.mission_block strong,
.services-intro strong,
.company-home strong {
  color: var(--av-blue);
  font-weight: 700;
}

/* ---------- Organisation ---------- */
.about_block.branded-about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
  margin-top: 0;
  padding-bottom: 64px;
}

.branded-about .about_txt {
  padding: 0;
}

.branded-about .about_txt p {
  margin: 0;
  font-size: 20px;
  line-height: 1.6;
}

.branded-about .about_txt p:first-child {
  margin-bottom: 24px;
  padding-left: 22px;
  border-left: 4px solid var(--av-pink);
  font-size: 24px;
  line-height: 1.45;
}

.about-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.about-tile {
  position: relative;
  min-height: 214px;
  overflow: hidden;
}

.about-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 24px 32px;
  color: #fff;
}

.about-contact a,
.about-contact a:hover {
  color: #fff;
}

.about-contact a:hover {
  text-decoration: underline;
}

.about-tile.about-wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #eef5fa;
}

.about-tile.about-wordmark img {
  width: 182px;
  height: 182px;
}

.company-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 48px 0 0;
}

.company-links a {
  padding: 14px 28px;
  border: 3px solid #62b9e9;
  color: #333e49;
  font-weight: 700;
  transition: color 0.2s, border-color 0.2s;
}

.company-links a:hover {
  border-color: var(--av-pink);
  color: var(--av-pink);
}

/* ---------- Services: industries ---------- */
h2.services-products {
  margin: 56px 0 28px;
  font-size: 40px;
}

.services-products + .production {
  margin-top: 0;
}

/* ---------- Home: industries ---------- */
.industries-home {
  margin-bottom: 72px;
  padding-top: 72px;
}

.industries-home .products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin: 0;
}

.industries-home .prod_blk {
  float: none;
  width: auto;
  height: 320px;
  margin: 0;
}

.industries-home .prod_blk:not(.first_prod) {
  background: #eef5fa;
}

.industries-home .prod_img,
.industries-home .prod_img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.industries-home .prod_ttl_block {
  height: 72px;
  padding: 0 16px;
  font-size: 22px;
}

.industries-home .prod_blk:focus-within .prod_info {
  opacity: 1;
}

.industries-home .prod_info {
  transition-duration: 0.35s;
}

.industries-home .prod_info_txt {
  display: flex;
  flex-direction: column;
  width: auto;
  padding: 28px 32px;
  font-size: 18px;
  line-height: 1.15;
}

.industries-home .prod_info_txt > ul {
  flex: 1;
  margin-bottom: 12px;
}

.industries-home .all_prod,
.industries-home .all_prod:hover {
  position: static;
  align-self: flex-start;
  width: auto;
  height: auto;
  padding: 8px 20px;
  transform: none;
  font-size: 18px;
  line-height: 1.3;
}

@media (max-width: 1279px) {
  .about_block.branded-about {
    gap: 36px;
  }

  h2.services-products {
    font-size: 36px;
  }

  .industries-home {
    margin: 0 35px 56px;
    padding-top: 56px;
  }

  .industries-home .prod_blk {
    height: 270px;
  }

  .industries-home .prod_info_txt {
    padding: 18px 20px;
    font-size: 15px;
  }

  .industries-home .prod_info_txt li {
    margin-bottom: 6px;
  }

  .industries-home .all_prod,
  .industries-home .all_prod:hover {
    padding: 6px 14px;
    font-size: 15px;
  }
}

@media (max-width: 979px) {
  .about_block.branded-about {
    grid-template-columns: 1fr;
    padding-bottom: 48px;
  }

  .industries-home {
    margin: 0 0 48px;
    padding-top: 48px;
  }

  .industries-home .products {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 755px) {
  .branded-about .about_txt p {
    font-size: 18px;
  }

  .branded-about .about_txt p:first-child {
    padding-left: 16px;
    font-size: 20px;
  }

  .about-tile {
    min-height: 150px;
  }

  .about-contact {
    padding: 16px;
    font-size: 15px;
  }

  .about-contact .city_name {
    font-size: 18px;
  }

  .about-tile.about-wordmark img {
    width: 130px;
    height: 130px;
  }

  h2.services-products {
    margin-bottom: 18px;
    font-size: 26px;
  }

  .company-links {
    margin: 32px 0 12px;
  }

  .industries-home .products {
    width: auto;
    padding: 0 12px;
    gap: 8px;
  }

  .industries-home .prod_blk {
    height: 180px;
  }

  .industries-home .prod_ttl_block {
    height: 54px;
    padding: 0 8px;
    font-size: 16px;
  }

  /* No hover on touch: the whole tile opens its category */
  .industries-home .prod_blk .prod_info,
  .industries-home .prod_blk:hover .prod_info {
    opacity: 0;
  }

  .industries-home .prod_info_txt > ul {
    display: none;
  }

  .industries-home .all_prod,
  .industries-home .all_prod:hover {
    position: absolute;
    inset: 0;
  }
}


/* ---------- Organisation: one split for both rows ---------- */
.mission.aboutp > h2 {
  margin: 0 0 32px;
  font-size: 36px;
}

.mission.aboutp .mission_block {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: auto;
  margin: 0;
  float: none;
}

.mission.aboutp .mission_block p {
  margin: 0;
  padding: 28px 32px;
  border-top: 4px solid #7fbe63;
  background: #f4f7fa;
  font-size: 20px;
  line-height: 1.5;
}

.mission.aboutp .mission_block p + p {
  border-top-color: #4f81bd;
}

.mission.aboutp .company_block {
  float: none;
  width: auto;
  margin: 0;
}

.mission.aboutp > .clr {
  display: none;
}

.mission.aboutp {
  margin-bottom: 0;
  padding-top: 56px;
  padding-bottom: 56px;
}

@media (min-width: 980px) {
  .about_block.branded-about {
    grid-template-columns: minmax(0, 44%) minmax(0, 45%);
    justify-content: space-between;
    gap: 0;
  }

  .mission.aboutp {
    display: grid;
    grid-template-columns: minmax(0, 44%) minmax(0, 45%);
    justify-content: space-between;
    align-items: center;
  }

  .mission.aboutp > h2 {
    grid-column: 1 / -1;
    font-size: 40px;
  }
}

@media (max-width: 979px) {
  .mission.aboutp .company_block {
    margin-top: 32px;
  }
}

@media (max-width: 755px) {
  .mission.aboutp {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .mission.aboutp > h2 {
    margin-bottom: 20px;
    font-size: 26px;
  }

  .mission.aboutp .mission_block {
    gap: 12px;
  }

  .mission.aboutp .mission_block p {
    padding: 20px;
    font-size: 18px;
  }
}

@media (min-width: 756px) and (max-width: 979px) {
  .mission.aboutp .company_block {
    max-width: 560px;
    margin-right: auto;
    margin-left: auto;
  }

  .production .prod_wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .production .prod_wrap .prod_blk {
    flex: 0 0 calc((100% - 48px) / 3);
  }
}

/* Services: one card per service */
.svc-section {
  padding-bottom: 8px;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 8px 0 64px;
}

.svc-card {
  --accent: var(--av-blue);
  position: relative;
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--accent);
  background: #fff;
  box-shadow: 0 1px 3px rgba(23, 50, 77, 0.1), 0 0 0 1px var(--av-rule);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(23, 50, 77, 0.14), 0 0 0 1px var(--av-rule);
}

.svc-green { --accent: #7fbe63; }
.svc-purple { --accent: #8663a4; }
.svc-blue { --accent: #4f81bd; }
.svc-lightblue { --accent: #63b8e8; }
.svc-pink { --accent: #ea4989; }

.svc-top {
  position: relative;
}

.svc-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #dfe7ef;
}

.svc-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.svc-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 25, 41, 0.35) 0%, rgba(10, 25, 41, 0) 45%);
  pointer-events: none;
}

.svc-num {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 1;
  padding: 3px 10px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.5;
}

.svc-icon {
  position: absolute;
  right: 22px;
  bottom: -28px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 4px 10px rgba(23, 50, 77, 0.2);
}

.svc-icon img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.svc-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 38px 26px 30px;
}

.svc-body h3 {
  margin: 0 0 16px;
  color: #25303b;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
}

.svc-card .svc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.svc-card .svc-list li {
  position: relative;
  margin: 0;
  padding: 0 0 0 28px;
  color: #3b4652;
  font-size: 17px;
  line-height: 1.45;
}

.svc-card .svc-list li + li {
  margin-top: 12px;
}

.svc-card .svc-list li::before {
  content: "";
  position: absolute;
  top: 0.3em;
  left: 4px;
  width: 6px;
  height: 11px;
  border: solid var(--accent);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.svc-cta {
  border-top-color: var(--av-pink);
  background: linear-gradient(145deg, #4879b0 0%, #2d5887 100%);
  box-shadow: 0 1px 3px rgba(23, 50, 77, 0.1);
}

.svc-cta .svc-body {
  justify-content: center;
  padding: 36px 32px;
}

.svc-cta h3 {
  color: #fff;
  font-size: 28px;
}

.svc-cta p {
  max-width: 34ch;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.5;
}

.svc-button,
.svc-button:hover {
  align-self: flex-start;
  padding: 12px 26px;
  background: var(--av-pink);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.svc-button::after {
  content: " \2192";
}

.svc-button:hover {
  background: #d83a79;
  transform: translateX(3px);
}

@media (max-width: 1099px) {
  .svc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 679px) {
  .svc-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    margin-bottom: 44px;
  }

  .svc-body {
    padding: 36px 20px 26px;
  }

  .svc-body h3 {
    font-size: 21px;
  }

  .svc-card .svc-list li {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .svc-card,
  .svc-button {
    transition: none;
  }

  .svc-card:hover {
    transform: none;
  }
}

/* Industries: cards that match the service cards */
.production .prod_wrap .prod_blk {
  --accent: var(--av-blue);
}

.production .prod_wrap .prod_blk:has(.green_bg) { --accent: #7fbe63; }
.production .prod_wrap .prod_blk:has(.lightblue_bg) { --accent: #63b8e8; }
.production .prod_wrap .prod_blk:has(.pink_bg) { --accent: #ea4989; }
.production .prod_wrap .prod_blk:has(.purple_bg) { --accent: #8663a4; }
.production .prod_wrap .prod_blk:has(.blue_bg) { --accent: #4f81bd; }

.production .prod_wrap .prod_blk a {
  border: 1px solid var(--av-rule);
  border-top: 4px solid var(--accent);
  background: #fff;
  box-shadow: 0 1px 3px rgba(23, 50, 77, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.production .prod_wrap .prod_blk a:hover,
.production .prod_wrap .prod_blk a:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(23, 50, 77, 0.14);
}

.production .prod_wrap .prod_img {
  overflow: hidden;
}

.production .prod_wrap .prod_img img {
  transition: transform 0.5s ease;
}

.production .prod_wrap .prod_blk a:hover .prod_img img,
.production .prod_wrap .prod_blk a:focus-visible .prod_img img {
  transform: scale(1.06);
}

.production .prod_wrap .prod_ttl_block {
  justify-content: space-between;
  gap: 10px;
  min-height: 74px;
  padding: 12px 16px 12px 18px;
  background: #fff;
}

.production .prod_wrap .prod_ttl {
  color: #25303b;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  text-transform: none;
}

.production .prod_wrap .prod_ttl_block::after {
  content: "\2192";
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.production .prod_wrap .prod_blk a:hover .prod_ttl_block::after,
.production .prod_wrap .prod_blk a:focus-visible .prod_ttl_block::after {
  transform: translateX(4px);
}

@media (max-width: 755px) {
  .production .prod_wrap .prod_ttl_block {
    min-height: 64px;
    padding: 10px 12px;
  }

  .production .prod_wrap .prod_ttl {
    font-size: 16px;
  }

  .production .prod_wrap .prod_ttl_block::after {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .production .prod_wrap .prod_blk a,
  .production .prod_wrap .prod_img img,
  .production .prod_wrap .prod_ttl_block::after {
    transition: none;
  }

  .production .prod_wrap .prod_blk a:hover,
  .production .prod_wrap .prod_blk a:hover .prod_img img,
  .production .prod_wrap .prod_blk a:hover .prod_ttl_block::after {
    transform: none;
  }
}
