:root {
  --agw-blue: #196a7a;
  --agw-blue-dark: #0c3f4a;
  --agw-red: #ca3d39;
  --agw-yellow: #f0d142;
  --agw-ink: #17232a;
  --agw-muted: #65737b;
  --agw-line: #dfe8eb;
  --agw-soft: #f5f8f9;
  --agw-white: #fff;
  --agw-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--agw-white);
}

body.agw-modern {
  margin: 0;
  color: var(--agw-ink);
  background: var(--agw-white);
  font-family: Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0;
}

a {
  color: var(--agw-blue);
  text-decoration-color: rgba(25, 106, 122, .3);
  text-underline-offset: .22em;
}

a:hover,
a:focus {
  color: var(--agw-blue-dark);
  text-decoration-color: currentColor;
}

img {
  max-width: 100%;
  height: auto;
}

.agw-header {
  background: var(--agw-white);
  border-bottom: 1px solid var(--agw-line);
}

.agw-banner {
  min-height: 210px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, .04) 52%, rgba(255, 255, 255, .18) 100%),
    url("/images/agw-banner.png") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 28px max(28px, calc((100vw - var(--agw-width)) / 2));
}

.agw-menu-toggle {
  width: 52px;
  height: 52px;
  border: 2px solid rgba(12, 63, 74, .38);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(12, 63, 74, .13);
  margin-right: auto;
  align-self: center;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.agw-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--agw-blue-dark);
  display: block;
  transition: transform .2s ease, opacity .2s ease;
}

.agw-menu-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.agw-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.agw-menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.agw-nav {
  display: none;
  border-top: 1px solid var(--agw-line);
  background: rgba(255, 255, 255, .98);
}

.agw-nav.is-open {
  display: block;
}

.agw-nav .mod-menu,
.agw-nav ul {
  max-width: var(--agw-width);
  margin: 0 auto;
  padding: 14px 28px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.agw-nav li {
  margin: 0;
}

.agw-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--agw-ink);
  font-weight: 700;
  text-decoration: none;
}

.agw-nav .current > a,
.agw-nav .active > a,
.agw-nav a:hover,
.agw-nav a:focus {
  background: rgba(240, 209, 66, .24);
  color: var(--agw-blue-dark);
}

.agw-page {
  width: min(var(--agw-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0 68px;
}

.agw-breadcrumbs {
  display: none;
}

.agw-main {
  min-height: 42vh;
}

.page-header h1,
.agw-main h1 {
  margin: 0 0 28px;
  color: var(--agw-blue-dark);
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  line-height: 1.08;
  font-weight: 800;
}

.agw-kicker {
  color: var(--agw-blue);
  font-weight: 800;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.agw-home-hero {
  border-left: 8px solid var(--agw-yellow);
  padding: clamp(24px, 4vw, 44px);
  background: var(--agw-soft);
  border-radius: 8px;
  margin-bottom: 28px;
}

.agw-home-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(1.85rem, 3.1vw, 2.85rem);
}

.agw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.agw-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--agw-line);
  border-radius: 8px;
  background: var(--agw-white);
  color: var(--agw-blue-dark);
  font-weight: 800;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.agw-button:hover,
.agw-button:focus {
  background: var(--agw-yellow);
  border-color: var(--agw-yellow);
  color: var(--agw-blue-dark);
}

.agw-menu-toggle:hover,
.agw-menu-toggle:focus {
  background: var(--agw-yellow);
  border-color: var(--agw-yellow);
  box-shadow: 0 12px 32px rgba(12, 63, 74, .18);
}

.agw-button-primary {
  background: var(--agw-yellow);
  border-color: var(--agw-yellow);
}

.agw-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 22px;
  margin: 28px 0;
}

.agw-content-grid article,
.agw-highlight,
.agw-contact-panel {
  border: 1px solid var(--agw-line);
  border-radius: 8px;
  background: var(--agw-white);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 12px 36px rgba(12, 63, 74, .07);
}

.agw-highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 5px solid var(--agw-yellow);
}

.agw-lead {
  color: var(--agw-blue-dark);
  font-size: 1.2rem;
  font-weight: 700;
}

.agw-note {
  border-left: 5px solid var(--agw-yellow);
  background: var(--agw-soft);
  padding: 14px 16px;
}

.agw-article-image {
  margin: 24px 0;
}

.agw-news-list {
  display: grid;
  gap: 26px;
  margin-top: 28px;
}

.com-content-category-blog {
  display: grid;
  gap: 28px;
}

.com-content-category-blog > h1,
.com-content-category-blog > h2 {
  margin-bottom: 0;
}

.com-content-category-blog .blog-items {
  display: grid;
  gap: 26px;
}

.com-content-category-blog__item {
  min-width: 0;
}

.agw-news-card {
  display: grid;
  grid-template-columns: minmax(220px, 38%) 1fr;
  gap: clamp(20px, 4vw, 42px);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--agw-line);
  border-radius: 8px;
  background: var(--agw-white);
  box-shadow: 0 14px 42px rgba(12, 63, 74, .08);
  color: var(--agw-ink);
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}

.agw-news-card:nth-child(even) {
  grid-template-columns: 1fr minmax(220px, 38%);
}

.agw-news-card:nth-child(even) figure {
  order: 2;
}

.agw-news-card figure {
  min-height: 260px;
  margin: 0;
  background: var(--agw-soft);
  border-right: 6px solid var(--agw-yellow);
  padding: 18px;
}

.agw-news-card:nth-child(even) figure {
  border-right: 0;
  border-left: 6px solid var(--agw-yellow);
}

.agw-news-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.agw-news-card div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(22px, 4vw, 40px);
}

.agw-news-card h2 {
  margin: 6px 0 14px;
  color: var(--agw-blue-dark);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.12;
}

.agw-news-card p {
  margin: 0 0 18px;
}

.agw-news-card .agw-lead {
  font-size: 1.02rem;
  font-weight: 600;
}

.agw-news-link {
  margin-top: 6px;
}

.agw-news-card:hover,
.agw-news-card:focus {
  border-color: rgba(240, 209, 66, .9);
  color: var(--agw-ink);
  transform: translateY(-2px);
}

.agw-story {
  display: grid;
  gap: 30px;
}

.agw-story-hero {
  display: grid;
  grid-template-columns: minmax(240px, 40%) 1fr;
  gap: clamp(22px, 4vw, 46px);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--agw-line);
  border-radius: 8px;
  background: var(--agw-white);
  box-shadow: 0 14px 42px rgba(12, 63, 74, .08);
}

.agw-story-hero figure {
  min-height: 320px;
  margin: 0;
  padding: 20px;
  background: var(--agw-soft);
  border-right: 7px solid var(--agw-yellow);
}

.agw-story-hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.agw-story-hero > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 44px);
}

.agw-story-hero h1 {
  margin: 8px 0 18px;
  color: var(--agw-blue-dark);
  font-size: clamp(1.75rem, 3vw, 2.85rem);
  line-height: 1.08;
}

.agw-story-body {
  width: 100%;
  font-size: 1.05rem;
}

.agw-story-accent {
  border-left: 7px solid var(--agw-yellow);
  border-radius: 8px;
  background: var(--agw-soft);
  padding: clamp(20px, 3vw, 30px);
}

.agw-story-body p {
  margin: 0 0 18px;
}

.agw-main h2,
.item-title {
  color: var(--agw-blue-dark);
  line-height: 1.18;
}

.blog-items,
.items-leading,
.items-row,
.com-content-category-blog__items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 24px;
}

.blog-item,
.com-content-article,
.item-page {
  background: var(--agw-white);
  border: 1px solid var(--agw-line);
  border-radius: 8px;
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 14px 42px rgba(12, 63, 74, .08);
}

.item-page,
.com-content-article {
  max-width: 840px;
}

.itemid-101 .com-content-article {
  max-width: none;
  border: 0;
  padding: 0;
  box-shadow: none;
}

.itemid-105 .com-content-article {
  max-width: none;
}

.itemid-105 .category-desc,
.itemid-140 .category-desc {
  border-left: 8px solid var(--agw-yellow);
  border-radius: 8px;
  background: var(--agw-soft);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 14px 42px rgba(12, 63, 74, .08);
}

.itemid-105 .blog-items,
.itemid-105 .items-leading,
.itemid-105 .items-row,
.itemid-105 .com-content-category-blog__items,
.itemid-140 .blog-items,
.itemid-140 .items-leading,
.itemid-140 .items-row,
.itemid-140 .com-content-category-blog__items {
  grid-template-columns: 1fr;
}

.itemid-105 .com-content-category-blog,
.itemid-105 .item-page,
.itemid-105 .com-content-article,
.itemid-140 .com-content-category-blog,
.itemid-140 .item-page,
.itemid-140 .com-content-article {
  max-width: none;
}

.itemid-105 .blog-item,
.itemid-105 .item-page,
.itemid-105 .com-content-article,
.itemid-140 .blog-item,
.itemid-140 .item-page,
.itemid-140 .com-content-article {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

body:not(.itemid-101):not(.itemid-105) .com-content-article:not(:has(.agw-story)) {
  max-width: 920px;
  border-left: 8px solid var(--agw-yellow);
  background: var(--agw-soft);
}

.blog-item .item-title,
.blog-item h2 {
  margin-top: 0;
  font-size: 1.45rem;
}

.blog-item p:last-child,
.item-page p:last-child,
.com-content-article p:last-child {
  margin-bottom: 0;
}

.article-info,
.com-content-article__info,
.icons,
.tags,
.readmore .icon-chevron-right,
.pagination,
.mod-breadcrumbs,
.category-desc,
.com-content-category-blog__counter {
  display: none !important;
}

.left.item-image,
.right.item-image,
.item-image {
  float: none;
  margin: 0 0 22px;
}

.item-image img,
.com-content-article img,
.blog-item img {
  border-radius: 8px;
  border: 1px solid var(--agw-line);
}

.btn,
button,
input[type="submit"] {
  border-radius: 8px;
}

.agw-footer {
  border-top: 1px solid var(--agw-line);
  background: var(--agw-soft);
  color: var(--agw-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 26px max(28px, calc((100vw - var(--agw-width)) / 2));
}

.agw-footer div {
  display: grid;
  gap: 2px;
}

.agw-footer strong {
  color: var(--agw-blue-dark);
}

.agw-footer img {
  width: 92px;
  max-height: 48px;
  object-fit: contain;
}

@media (min-width: 820px) {
  .agw-menu-toggle {
    display: none;
  }

  .agw-nav {
    display: block;
  }
}

@media (min-width: 1201px) {
  .agw-banner {
    min-height: 160px;
    background-size: auto, auto 150px;
    background-position: center, right center;
  }
}

@media (max-width: 1200px) {
  .agw-banner {
    min-height: clamp(118px, 18.75vw, 210px);
    background-size: contain;
    background-position: right center;
  }
}

@media (max-width: 819px) {
  body.agw-modern {
    font-size: 16px;
  }

  .agw-banner {
    min-height: clamp(88px, 24vw, 142px);
    padding: 16px;
    align-items: flex-start;
    background-size: contain;
    background-position: right center;
  }

  .agw-nav .mod-menu,
  .agw-nav ul {
    align-items: stretch;
    flex-direction: column;
    padding: 14px 20px 20px;
  }

  .agw-nav a {
    padding: 12px 10px;
  }

  .agw-page {
    width: min(100% - 28px, var(--agw-width));
    padding: 32px 0 48px;
  }

  .agw-news-card,
  .agw-news-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .agw-news-card:nth-child(even) figure {
    order: 0;
  }

  .agw-news-card figure,
  .agw-news-card:nth-child(even) figure {
    min-height: 190px;
    border-right: 0;
    border-left: 0;
    border-bottom: 6px solid var(--agw-yellow);
  }

  .agw-story-hero {
    grid-template-columns: 1fr;
  }

  .agw-story-hero figure {
    min-height: 220px;
    border-right: 0;
    border-bottom: 7px solid var(--agw-yellow);
  }

  .blog-items,
  .items-leading,
  .items-row,
  .com-content-category-blog__items {
    grid-template-columns: 1fr;
  }

  .agw-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 20px;
  }

  .agw-highlight {
    align-items: flex-start;
    flex-direction: column;
  }
}
