* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: #2d3438;
    background: repeating-linear-gradient(
        180deg,
        #c4e4f4 0 120px,
        #cde8c6 120px 240px,
        #f8d8bc 240px 360px
    );
    background-attachment: fixed;
}

.wrapper {
    max-width: 1160px;
    margin: 24px auto 40px;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(45, 76, 92, 0.18);
    border-radius: 18px;
    overflow: hidden;
}

a { color: #43830b; }
a:hover { color: #2f5f07; }

.site-head {
    background: #ffffff;
    border-bottom: 4px solid #cde8c6;
    padding: 22px 34px 0;
}

.head-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding-bottom: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
}

.brand img {
    width: 108px;
    height: 82px;
    object-fit: cover;
    border-radius: 14px;
    background: #f0f2f3;
}

.brand-name {
    display: block;
    font-size: 27px;
    font-weight: 700;
    color: #2d3438;
    letter-spacing: 0.2px;
}

.brand-tag {
    display: block;
    font-size: 14px;
    color: #6a7780;
}

.head-contacts {
    margin-left: auto;
    text-align: right;
    font-size: 14px;
    color: #6a7780;
}

.head-contacts a {
    display: block;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
}

nav.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background: #f0f2f3;
    border-radius: 12px 12px 0 0;
    padding: 0 10px;
    margin: 0 -10px;
}

nav.menu a {
    display: block;
    padding: 14px 20px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    color: #35424a;
    border-bottom: 4px solid transparent;
    border-radius: 8px 8px 0 0;
    transition: background 0.18s, color 0.18s;
}

nav.menu a:hover { background: #c4e4f4; color: #12405c; }

nav.menu a.active {
    color: #43830b;
    border-bottom-color: #43830b;
    background: #ffffff;
}

main { padding: 34px; }

h1 {
    font-size: 33px;
    margin: 0 0 8px;
    color: #243540;
}

h2 {
    font-size: 24px;
    margin: 34px 0 14px;
    color: #243540;
    border-left: 5px solid #cde8c6;
    padding-left: 14px;
}

h3 { font-size: 19px; margin: 0 0 8px; color: #12405c; }

p { margin: 0 0 14px; }

.lead {
    font-size: 19px;
    color: #4d5a63;
    background: #f0f2f3;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 0 0 26px;
}

.crumbs { font-size: 14px; margin-bottom: 18px; color: #6a7780; }
.crumbs a { text-decoration: none; }

.hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 26px;
    align-items: center;
    background: linear-gradient(120deg, #eaf6fc, #f2f8ef);
    border-radius: 16px;
    padding: 26px;
    margin-bottom: 30px;
}

.hero p:last-child { margin-bottom: 0; }

.button {
    display: inline-block;
    background: #43830b;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    padding: 11px 24px;
    border-radius: 30px;
    margin-top: 8px;
}
.button:hover { background: #2f5f07; color: #ffffff; }
.button.alt { background: #12405c; }

.photo {
  background: repeating-linear-gradient(
    135deg,
    #c4e4f4 0 18px,
    #f8d8bc 18px 36px
  );
    border: 3px dashed #12405c33;
  border-radius: 16px;
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  overflow: hidden;
}

.photo.tall {
  min-height: 320px;
}
.photo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}
figure.photo { margin: 24px 0; }
figcaption { font-size: 14px; color: #6a7780; font-weight: 400; margin-top: 8px; }

.cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    align-items: start;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 22px 0 8px;
}

.card {
    background: #f0f2f3;
    border-radius: 14px;
    padding: 20px;
    border-top: 5px solid #cde8c6;
}
.card:nth-child(3n) { border-top-color: #f8d8bc; }
.card:nth-child(3n+2) { border-top-color: #c4e4f4; }
.card span.kicker {
    display: inline-block;
    font-size: 13px;
    color: #43830b;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.card a.more { font-weight: 600; text-decoration: none; }

.news {
    border: 1px solid #dfe6ea;
    border-radius: 14px;
    padding: 8px 18px;
    margin: 20px 0;
    background: #fbfdfe;
}

.news-item {
    display: grid;
    grid-template-columns: 116px 1fr;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #eef2f4;
}
.news-item:last-child { border-bottom: 0; }
.news-item time {
    font-size: 14px;
    color: #6a7780;
    font-weight: 600;
    padding-top: 2px;
}
.news-item h3 { margin-bottom: 4px; }
.news-item p { margin: 0 0 6px; font-size: 15px; }

.summary {
    background: #eef7ea;
    border-radius: 14px;
    padding: 22px 26px;
    margin: 26px 0;
}
.summary dl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin: 14px 0 0;
}
.summary dt { font-weight: 700; color: #43830b; font-size: 22px; }
.summary dd { margin: 0; font-size: 14px; color: #4d5a63; }

ul.ticks { list-style: none; padding-left: 0; }
ul.ticks li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 10px;
}
ul.ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #cde8c6;
    box-shadow: inset 0 0 0 4px #43830b;
}

blockquote {
    margin: 22px 0;
    padding: 16px 22px;
    background: #f0f2f3;
    border-left: 5px solid #43830b;
    border-radius: 0 12px 12px 0;
    font-style: italic;
}

.tags { margin: 24px 0 4px; font-size: 14px; }
.tags a {
    display: inline-block;
    background: #f0f2f3;
    color: #35424a;
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    margin: 0 6px 6px 0;
}
.tags a:hover { background: #c4e4f4; color: #12405c; }

aside.box {
    background: #f0f2f3;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
}
aside.box h3 { margin-top: 0; }
aside.box ul { padding-left: 20px; margin: 0; }
aside.box li { margin-bottom: 8px; }

.page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 30px;
    align-items: start;
}

.nextprev {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 2px solid #cde8c6;
    margin-top: 30px;
    padding-top: 16px;
    font-size: 15px;
}

.site-foot {
    background: #f0f2f3;
    border-top: 5px solid #cde8c6;
    padding: 26px 34px 18px;
    font-size: 15px;
    color: #4d5a63;
}

.foot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 24px;
}
.foot-grid h3 { font-size: 16px; margin-top: 0; color: #12405c; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 7px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }

.copyright {
    border-top: 1px solid #d7dee2;
    margin-top: 22px;
    padding-top: 14px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.copyright a { text-decoration: none; }

table.plain {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    font-size: 15px;
}
table.plain th, table.plain td {
    border: 1px solid #dfe6ea;
    padding: 10px 12px;
    text-align: left;
}
table.plain th { background: #eef7ea; color: #243540; }

@media (max-width: 900px) {
    .hero, .cols, .page-grid { grid-template-columns: 1fr; }
    main { padding: 22px; }
    .site-head { padding: 18px 20px 0; }
    .head-contacts { margin-left: 0; text-align: left; }
    nav.menu a { padding: 12px 14px; }
    .brand img { width: 84px; height: 64px; }
}
