:root {
  --green: #2d4a2d;
  --green-dark: #243e24;
  --green-btn: #4a7a4a;
  --green-soft: #e8f0e8;
  --ink: #222222;
  --muted: #5c5c5c;
  --line: rgba(45, 74, 45, 0.14);
  --cream: #f5f3ee;
  --warm: #fbf8f0;
  --header: 76px;
  --shadow: 0 16px 50px rgba(30, 40, 30, 0.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Source Code Pro", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 16px;
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

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

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--green-btn);
  outline-offset: 3px;
}

::selection {
  background: #d7e6d4;
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 80;
  transform: translateY(-150%);
  background: #fff;
  color: var(--green);
  padding: 8px 12px;
  border-radius: 8px;
}

.skip:focus {
  transform: none;
}

section[id] {
  scroll-margin-top: 88px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(45, 74, 45, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header);
  padding: 0 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav a {
  font-size: 15px;
  font-weight: 500;
  color: #243028;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--green-btn);
}

.burger {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 10px 8px;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--green);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green-btn);
  color: #fff;
  border: 1.5px solid transparent;
  border-radius: 30px;
  padding: 16px 36px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background: #3f6a3f;
  color: #fff;
}

.btn--small {
  background: var(--green);
  color: var(--green-soft);
  padding: 11px 20px;
  font-size: 14px;
  border-radius: 32px;
}

.btn--small:hover {
  background: var(--green-dark);
  color: #fff;
}

.nav a.btn,
.nav a.btn:hover,
.nav a.btn[aria-current="page"] {
  color: #fff;
  font-weight: 600;
}

.btn--ghost {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}

.btn--ghost:hover {
  background: var(--green-soft);
  color: var(--green);
}

.btn--block {
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--header));
  background: #fff;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 64px 64px 7vw;
}

.hero h1 {
  margin: 0 0 28px;
  max-width: 8em;
  font-size: clamp(42px, 4.4vw, 56px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #333;
}

.hero__lead {
  margin: 0;
  max-width: 22em;
  font-size: 22px;
  line-height: 1.5;
  color: #404040;
}

.hero .btn {
  align-self: flex-start;
  margin-top: 32px;
}

.hero__photo {
  position: relative;
  min-height: 420px;
  background: #c5c1b4;
}

.hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.stats {
  background: var(--cream);
  padding: 72px 24px;
}

.stats__grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.stat {
  text-align: center;
  color: #161616;
}

.stat__top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.stat svg {
  width: 34px;
  height: 34px;
  flex: none;
}

.stat strong {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.stat p {
  margin: 10px auto 0;
  max-width: 16em;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section {
  padding: 96px 24px;
}

.section-title {
  margin: 0 0 40px;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-align: center;
}

.about {
  padding-bottom: 36px;
}

.about p {
  max-width: 920px;
  margin: 0 auto 22px;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
}

.specs {
  padding: 0 24px 96px;
}

.specs__grid {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.specs__grid > div {
  background: var(--cream);
  border-radius: 16px;
  border-top: 4px solid var(--green);
  padding: 22px 20px 20px;
}

.specs__label {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.specs__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.specs__tags li {
  background: #fff;
  color: var(--green);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.band {
  background: var(--cream);
}

.band--warm {
  background: var(--warm);
}

.jobs {
  max-width: 980px;
  margin: 0 auto;
}

.job {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 20px 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.job:first-child {
  border-top: 1px solid var(--line);
}

.job__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.job__year {
  font-weight: 600;
  color: var(--green);
  padding-top: 4px;
}

.job__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.job__logo {
  width: auto;
  height: 40px;
  max-width: 150px;
  object-fit: contain;
  object-position: left center;
  background: transparent;
}

.job__company {
  font-size: 22px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: -0.02em;
}

.job__company:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.job__about {
  margin: 2px 0 4px;
  max-width: 68ch;
  padding: 10px 14px 12px;
  border: 1px solid rgba(45, 74, 45, 0.22);
  border-left: 3px solid var(--green);
  border-radius: 10px;
  background: #fff;
  color: #3a3a3a;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

.job__about::before {
  content: "About the company";
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.job__role {
  margin-top: 0;
  color: var(--muted);
  font-size: 15px;
}

.job__text {
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.55;
}

.job__metrics {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: var(--green);
  font-weight: 600;
  font-size: 15px;
}

.job__metrics li {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
}

.job__metrics a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pixel-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.pixel {
  width: 22px;
  height: 22px;
  flex: none;
  shape-rendering: crispEdges;
}

.center {
  margin-top: 40px;
  text-align: center;
}

.post-list {
  max-width: 860px;
  margin: 0 auto;
}

.post-row {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
  padding: 22px 8px;
  border-bottom: 1px solid var(--line);
}

.post-row:first-child {
  border-top: 1px solid var(--line);
}

.post-row:hover {
  background: rgba(45, 74, 45, 0.04);
}

.post-row:hover .post-row__title {
  color: var(--green-btn);
}

.post-row__title {
  display: block;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.post-row__excerpt {
  display: -webkit-box;
  margin-top: 8px;
  color: #444;
  font-size: 15px;
  line-height: 1.45;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-row time {
  flex: none;
  padding-top: 4px;
  color: #666;
  font-size: 14px;
}

.more {
  display: block;
  margin-top: 28px;
  text-align: center;
  color: var(--green);
  font-weight: 600;
}

.more:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.books__grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.book__cover {
  display: block;
  background: var(--cream);
  border-radius: 12px;
  overflow: hidden;
}

.book__cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.badge {
  display: inline-block;
  margin-top: 16px;
  color: var(--green-btn);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book h3,
.book-detail h2 {
  margin: 8px 0 10px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.book p,
.book-detail p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.5;
}

.price {
  margin: 8px 0 16px;
  font-size: 16px;
}

.price b {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.contacts {
  text-align: center;
  padding: 80px 24px 36px;
}

.contacts .section-title {
  margin-bottom: 8px;
}

.contacts__city {
  margin: 0 0 28px;
  font-size: 20px;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-bottom: 48px;
  background: var(--cream);
}

.social {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #fff;
}

.social svg {
  width: 22px;
  height: 22px;
  display: block;
}

.social--mail { background: #111; }
.social--tg { background: #1d98dc; }
.social--in { background: #0e76a8; }

.social:hover { transform: translateY(-1px); }

.footer {
  background: var(--green);
  color: #e7f0e4;
  text-align: center;
  padding: 48px 20px 56px;
}

.footer p {
  margin: 0 0 10px;
}

.footer a {
  color: #d5e8cf;
}

.footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 88px;
}

.page--wide {
  max-width: 980px;
}

.page h1 {
  margin: 0 0 28px;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.03em;
  text-align: center;
}

.book-detail {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: start;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.book-detail:last-child {
  border-bottom: 1px solid var(--line);
}

.book-detail img {
  width: 100%;
  border-radius: 12px;
  background: var(--cream);
}

.book-detail .prose p {
  font-size: 16px;
  line-height: 1.6;
}

.back {
  margin: 0 0 18px;
}

.back a {
  color: var(--green);
  font-weight: 600;
}

.back a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article {
  max-width: 740px;
  margin: 0 auto;
  padding: 36px 24px 88px;
}

.article h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.article time {
  display: block;
  margin: 16px 0 28px;
  color: #666;
}

.prose p {
  margin: 0 0 1em;
  font-size: 18px;
  line-height: 1.7;
}

.prose h3 {
  margin: 1.6em 0 0.6em;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.prose a {
  color: var(--green-btn);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose strong {
  font-weight: 700;
}

.policy h1 {
  text-align: left;
  font-size: clamp(32px, 4vw, 44px);
}

.policy .lead {
  margin-top: -12px;
  color: var(--muted);
}

.policy h2 {
  margin: 1.6em 0 0.6em;
  font-size: 22px;
}

.cookie {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 380px;
  padding: 12px 12px 12px 16px;
  background: #f4f1ea;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.cookie p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.cookie button {
  flex: none;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(24, 32, 24, 0.48);
}

.modal__card {
  position: relative;
  width: min(480px, 100%);
  max-height: min(92vh, 760px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  padding: 28px 24px 24px;
  box-shadow: var(--shadow);
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: #333;
}

.modal h2 {
  margin: 0 32px 8px 0;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.modal .lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.contact:hover {
  background: var(--green-soft);
  border-color: rgba(45, 74, 45, 0.3);
}

.contact__icon {
  width: 40px;
  height: 40px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
}

.contact__icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.contact__label {
  display: block;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact__value {
  display: block;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .header__inner {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--header);
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .burger {
    display: block;
  }

  .nav {
    display: none;
    position: static;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin: 0;
    padding: 8px 4px 12px;
    background: #fff;
  }

  .header.is-open .nav {
    display: flex;
  }

  .nav a,
  .nav .btn {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero__photo {
    order: -1;
    height: 68vw;
    min-height: 260px;
    max-height: 520px;
  }

  .hero__copy {
    padding: 36px 20px 48px;
  }

  .hero h1 {
    max-width: none;
  }

  .stats__grid,
  .specs__grid,
  .books__grid {
    grid-template-columns: 1fr 1fr;
  }

  .job,
  .book-detail {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .header__inner {
    padding: 0 16px;
  }

  .brand {
    font-size: 16px;
  }

  .stats__grid,
  .specs__grid,
  .books__grid {
    grid-template-columns: 1fr;
  }

  .post-row {
    flex-direction: column;
    gap: 8px;
  }

  .section {
    padding: 64px 16px;
  }

  .hero__lead,
  .about p {
    font-size: 18px;
  }

  .cookie {
    left: 12px;
    right: 12px;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .social:hover {
    transform: none;
  }
}

.services__lead {
  max-width: 640px;
  margin: -20px auto 36px;
  color: var(--muted);
  font-size: 16px;
  text-align: center;
}

.services {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--cream);
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.service:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 74, 45, 0.3);
  box-shadow: 0 14px 34px rgba(30, 40, 30, 0.12);
}

.service--main {
  position: relative;
  overflow: hidden;
  grid-column: span 2;
  background: var(--green);
  border-color: transparent;
  color: #eef4ec;
}

.service--main > :not(.service__deco) {
  position: relative;
}

/* Big pale number on the right of the audit card, magazine style. Hidden on phones. */
.service__deco {
  position: absolute;
  right: 28px;
  bottom: -34px;
  color: #fff;
  font-size: 220px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  opacity: 0.06;
  pointer-events: none;
}

@media (max-width: 640px) {
  .service__deco {
    display: none;
  }
}

.service__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
}

.service__icon .pixel {
  width: 26px;
  height: 26px;
}

.service__num {
  color: var(--green-btn);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.service h3 {
  margin: 6px 0 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.service p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.service--main h3 {
  font-size: clamp(30px, 3.4vw, 40px);
}

.service--main p {
  max-width: 34em;
  font-size: 18px;
}

.service--main .service__num,
.service--main .service__result span {
  color: #b9d3b1;
}

.service__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service__tags li {
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.service__steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.service__steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  counter-increment: step;
}

.service__steps li::before {
  content: counter(step);
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 12px;
}

.service__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed rgba(45, 74, 45, 0.25);
}

.service--main .service__foot {
  border-top-color: rgba(255, 255, 255, 0.25);
}

.service__result {
  font-weight: 600;
}

.service__result span {
  display: block;
  margin-bottom: 2px;
  color: var(--green-btn);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service__cta {
  flex: none;
  margin-left: auto;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.service--main .service__cta {
  color: #fff;
}

.service:hover .service__cta {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .services {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .services__lead {
    margin-top: -12px;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .service--main {
    grid-column: auto;
  }

  .service {
    padding: 20px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service,
  .service:hover {
    transition: none;
    transform: none;
  }
}

/* English version flag at the right of the header, links to the same page on denivanitskiy.com. */
.lang-flag {
  position: relative;
  display: inline-flex;
  flex: none;
  align-self: center;
  width: 18px;
  height: 18px;
  margin-right: 2px;
  border-radius: 50%;
  line-height: 0;
  box-shadow: 0 1px 2px rgba(30, 40, 30, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lang-flag svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Bigger tap target than the 18px circle. */
.lang-flag::before {
  content: "";
  position: absolute;
  inset: -9px;
}

.lang-flag:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(30, 40, 30, 0.14);
}

@media (max-width: 980px) {
  .burger {
    order: 1;
  }

  .lang-flag {
    order: 2;
    margin-left: 10px;
    margin-right: 0;
  }

  .nav {
    order: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lang-flag {
    transition: none;
  }

  .lang-flag:hover {
    transform: none;
  }
}

/* ===== Home redesign (09.11.2026): cards and bands in the style of the services block ===== */

/* Numbers: dark band under the hero */
.stats {
  padding: 56px 24px;
  background: var(--green);
  color: #eef4ec;
}

.stats__grid {
  max-width: 1080px;
  gap: 0;
}

.stat {
  padding: 6px 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  color: inherit;
  text-align: left;
}

.stat:first-child {
  border-left: 0;
}

.stat__top {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
}

.stat svg {
  width: 28px;
  height: 28px;
  color: #b9d3b1;
}

.stat strong {
  color: #fff;
  font-size: clamp(28px, 3.3vw, 46px);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.stat p {
  max-width: 15em;
  margin: 12px 0 0;
  color: #b9d3b1;
  letter-spacing: 0.06em;
}

/* About: pull quote on the left, text on the right */
.about__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}

.about__quote {
  margin: 0;
  padding: 28px 28px 28px 32px;
  border-left: 6px solid var(--green);
  border-radius: 20px;
  background: var(--cream);
  color: var(--green);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.about .about__text p {
  max-width: none;
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.7;
}

/* Specs: cards with pixel icons */
.specs__grid {
  max-width: 1080px;
}

.specs__grid > div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.spec__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.spec__head .specs__label {
  margin: 0;
}

.spec__head .service__icon {
  width: 40px;
  height: 40px;
}

.spec__head .service__icon .pixel {
  width: 24px;
  height: 24px;
}

/* Experience: every job is a white card, metrics as chips */
.jobs {
  display: grid;
  gap: 16px;
  max-width: 1080px;
}

.job,
.job:first-child {
  grid-template-columns: 180px 1fr;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  transition: box-shadow 0.18s ease;
}

.job:hover {
  box-shadow: 0 14px 34px rgba(30, 40, 30, 0.08);
}

.job__year {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
}

.job__about {
  border: 0;
  border-left: 3px solid var(--green);
  background: var(--cream);
}

.job__metrics {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

.job__metrics li {
  gap: 8px;
  padding: 7px 12px 7px 9px;
  border-radius: 999px;
  background: var(--green-soft);
  font-size: 14px;
}

.job__metrics .pixel {
  width: 18px;
  height: 18px;
}

/* Blog on the home page: grid of cards */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 74, 45, 0.3);
  box-shadow: 0 14px 34px rgba(30, 40, 30, 0.1);
}

.post-card time {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}

.post-card__title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.post-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.post-card__more {
  margin-top: auto;
  padding-top: 6px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

.post-card:hover .post-card__more {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-grid + .more {
  width: max-content;
  margin: 32px auto 0;
  padding: 12px 22px;
  border: 1.5px solid var(--green);
  border-radius: 999px;
}

.post-grid + .more:hover {
  background: var(--green);
  color: #fff;
  text-decoration: none;
}

/* Books: horizontal cards, cover on the left */
.books__grid {
  gap: 20px;
}

.book {
  display: grid;
  grid-template-columns: 170px 1fr;
  column-gap: 22px;
  align-content: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--cream);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.book:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(30, 40, 30, 0.1);
}

.book > :not(.book__cover) {
  grid-column: 2;
}

.book__cover {
  grid-row: 1 / span 6;
  align-self: start;
  box-shadow: 0 10px 24px rgba(30, 40, 30, 0.18);
}

.book .badge {
  margin-top: 0;
}

.book .btn {
  justify-self: start;
  padding: 12px 20px;
  font-size: 14px;
}

/* Contacts: big green card */
.contacts {
  padding: 80px 24px;
}

.contacts__card {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 40px;
  border-radius: 28px;
  background: var(--green);
  color: #eef4ec;
  text-align: center;
}

.contacts .section-title {
  margin-bottom: 8px;
  color: #fff;
}

.contacts__city {
  margin: 0 0 32px;
  color: #b9d3b1;
  font-size: 18px;
}

.contacts__list {
  grid-template-columns: repeat(3, 1fr);
  max-width: 860px;
  margin: 0 auto;
  text-align: left;
}

.contacts__list .contact {
  border-color: transparent;
  transition: transform 0.18s ease;
}

.contacts__list .contact:hover {
  background: #fff;
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  .stats__grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 28px;
  }

  .stat:nth-child(3) {
    border-left: 0;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .post-grid {
    grid-template-columns: 1fr 1fr;
  }

  .job,
  .job:first-child {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .contacts__list {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  .stats {
    padding: 40px 16px;
  }

  .stats__grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    padding: 4px 14px;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .book {
    grid-template-columns: 110px 1fr;
    column-gap: 16px;
    padding: 16px;
  }

  .book h3 {
    font-size: 22px;
  }

  .contacts {
    padding: 56px 16px;
  }

  .contacts__card {
    padding: 32px 18px;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .post-card,
  .post-card:hover,
  .book,
  .book:hover,
  .contacts__list .contact:hover {
    transition: none;
    transform: none;
  }
}

.ru-flag {
  position: relative;
  display: inline-flex;
  flex: none;
  align-self: center;
  width: 18px;
  height: 18px;
  margin-right: 2px;
  border-radius: 50%;
  line-height: 0;
  box-shadow: 0 1px 2px rgba(30, 40, 30, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ru-flag svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Bigger tap target than the 18px circle. */
.ru-flag::before {
  content: "";
  position: absolute;
  inset: -9px;
}

.ru-flag:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(30, 40, 30, 0.14);
}

@media (max-width: 980px) {
  .burger {
    order: 1;
  }

  .ru-flag {
    order: 2;
    margin-left: 10px;
    margin-right: 0;
  }

  .nav {
    order: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ru-flag:hover {
    transform: none;
  }
}

/* Cookie consent banner: two equal choices, Metrica only after "Accept" */
.cookie {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  max-width: 420px;
  padding: 16px;
  border: 1px solid var(--line);
}

.cookie p {
  font-size: 13px;
  line-height: 1.5;
}

.cookie a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.cookie .cookie__btn {
  padding: 8px 18px;
  border: 1.5px solid var(--green-btn);
  border-radius: 999px;
  background: var(--green-btn);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.cookie .cookie__btn--ghost {
  border-color: rgba(45, 74, 45, 0.35);
  background: #fff;
  color: var(--green);
}

.cookie .cookie__btn:hover {
  filter: brightness(0.95);
}

/* Legal links in the footer */
.footer .footer__legal {
  margin-top: 18px;
  color: #b9d3b1;
  font-size: 13px;
}

.footer__button {
  padding: 0;
  border: 0;
  background: none;
  color: #d5e8cf;
  font: inherit;
  cursor: pointer;
}

.footer__button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .cookie__actions .cookie__btn {
    flex: 1;
  }
}

/* Consent page: current choice and the two buttons */
.consent-box {
  margin: 8px 0 28px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 16px;
  background: var(--cream);
}

.consent-box p {
  margin: 0 0 12px;
}

.consent-box .cookie__actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.consent-box .cookie__btn {
  padding: 10px 18px;
  border: 1.5px solid var(--green-btn);
  border-radius: 999px;
  background: var(--green-btn);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.consent-box .cookie__btn--ghost {
  border-color: rgba(45, 74, 45, 0.35);
  background: #fff;
  color: var(--green);
}

.consent-date {
  color: var(--muted);
  font-size: 14px;
}
