/* =========================================
   TRG styles
   raster background compositions + live content
========================================= */

:root {
  --color-bg: #f3f6f9;
  --color-surface: #ffffff;
  --color-surface-soft: rgba(255, 255, 255, 0.9);

  --color-text: #17324d;
  --color-text-soft: #627486;
  --color-text-inverse: #ffffff;

  --color-navy: #123e73;
  --color-navy-dark: #081827;
  --color-green: #95b930;

  --shadow-soft: 0 18px 48px rgba(14, 40, 68, 0.08);
  --shadow-card: 0 24px 60px rgba(14, 40, 68, 0.1);

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --container-max: 1440px;
  --container-pad: 48px;
  --header-height: 96px;

  --ease: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

body.nav-open {
  overflow: hidden;
}

.container {
  width: min(100%, calc(var(--container-max) + (var(--container-pad) * 2)));
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.header__container {
  width: 100%;
  margin: 0;
  padding-left: 48px;
  padding-right: 48px;
}

.site-main {
  overflow: clip;
}

/* =========================================
   Header
========================================= */

.site-header {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 50;
  height: calc(var(--header-height) + 18px);
}

.site-header::after {
  content: "";
  position: absolute;
  left: var(--container-pad);
  right: var(--container-pad);
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.38);
  pointer-events: none;
}

.header__inner {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 32px;
  padding-top: 6px;
}

.header__brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
}

.header__logo {
  display: block;
  width: 340px;
  height: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  justify-self: end;
}

.header__menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0;
  padding: 0;
}

.header__menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 20px;
  font-weight: 500;
  transition: color var(--ease);
}

.header__menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--color-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}

.header__menu a:hover,
.header__menu a:focus-visible {
  color: #ffffff;
}

.header__menu a:hover::after,
.header__menu a:focus-visible::after {
  transform: scaleX(1);
}

.header__burger {
  display: none;
  position: relative;
  z-index: 60;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.header__burger span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform var(--ease), opacity var(--ease);
}

.header__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.header__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.header__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* =========================================
   Shared section heading
========================================= */

.section-head {
  display: grid;
  gap: 18px;
}

.section-head--left {
  max-width: 840px;
}

.section-head__eyebrow {
  margin: 0;
  color: var(--color-navy);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head__title {
  margin: 0;
  font-size: clamp(36px, 3.25vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.section-head__text {
  max-width: 760px;
  margin: 0;
  color: var(--color-text-soft);
  font-size: clamp(18px, 1.35vw, 24px);
  line-height: 1.56;
}

/* =========================================
   Hero
========================================= */

.hero {
  position: relative;
  min-height: 955px;
  display: flex;
  align-items: stretch;
  background-color: var(--color-navy-dark);
}

.hero--bg {
  background-image: url("../assets/img/bg-hero-desktop.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 24, 39, 0.34) 0%, rgba(8, 24, 39, 0.16) 34%, rgba(8, 24, 39, 0.08) 60%, rgba(8, 24, 39, 0.02) 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: 100%;
  padding-top: 146px;
  padding-bottom: 70px;
}

.hero__content {
  max-width: 710px;
}

.hero__title {
  margin: 90px 0 0;
  max-width: 11ch;
  color: var(--color-text-inverse);
  font-size: clamp(58px, 5vw, 84px);
  line-height: 0.98;
  letter-spacing: 0.01em;
}

.hero__text {
  max-width: 39ch;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(20px, 1.45vw, 24px);
  line-height: 1.55;
}

.hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 270px;
  min-height: 72px;
  margin-top: 38px;
  padding: 0 36px;
  border-radius: 12px;
  background: linear-gradient(180deg, #a7cb40 0%, #95b930 100%);
  color: #0d2239;
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 20px 36px rgba(149, 185, 48, 0.22);
  transition: transform var(--ease), box-shadow var(--ease), filter var(--ease);
}

.hero__button:hover,
.hero__button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 24px 42px rgba(149, 185, 48, 0.28);
}

/* =========================================
   Supply
========================================= */

.supply {
  position: relative;
  padding: 96px 0 86px;
  background-color: #f4f7fa;
}

.supply--bg {
  background-image: url("../assets/img/bg-supply-desktop.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

.supply__inner {
  position: relative;
}

.supply__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin-top: 54px;
}

.supply-card {
  min-width: 0;
}

.supply-card__link {
  display: grid;
  gap: 16px;
  height: 100%;
  padding: 14px 14px 16px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 62, 115, 0.08);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(1px);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.supply-card__link:hover,
.supply-card__link:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(18, 62, 115, 0.16);
}

.supply-card__title {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  margin: 0;
  text-align: center;
  color: var(--color-text);
  font-size: 22px;
  line-height: 1.24;
  letter-spacing: -0.03em;
}

.supply-card__image {
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 1 / 1.08;
  background: #dfe8f1;
}

.supply-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.supply__note {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 42px;
}

.supply__note-slash {
  flex: 0 0 auto;
  width: 18px;
  height: auto;
}

.supply__note-text {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 18px;
  line-height: 1.6;
}

/* =========================================
   Competencies
========================================= */

.competencies {
  position: relative;
  padding: 98px 0 88px;
  background-color: #f5f8fb;
}

.competencies--bg {
  background-image: url("../assets/img/bg-competencies-desktop.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

.competencies__inner {
  position: relative;
}

.competencies__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 54px;
}

.competency-card {
  display: flex;
  flex-direction: column;
  min-height: 312px;
  padding: 30px 30px 28px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 62, 115, 0.08);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(1px);
}

.competency-card__icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
}

.competency-card__icon img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.competency-card__body {
  display: grid;
  gap: 14px;
}

.competency-card__title {
  margin: 0;
  color: var(--color-text);
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.competency-card__text {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 18px;
  line-height: 1.58;
}

/* =========================================
   Contacts
========================================= */

.contacts {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: stretch;
  background-color: var(--color-navy-dark);
}

.contacts--bg {
  background-image: url("../assets/img/bg-contacts-desktop.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.contacts__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 24, 39, 0.14) 0%, rgba(8, 24, 39, 0.08) 28%, rgba(8, 24, 39, 0.02) 56%, rgba(8, 24, 39, 0) 100%);
  pointer-events: none;
}

.contacts__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 68px;
  padding-top: 136px;
  padding-bottom: 50px;
}

.contacts__top {
  display: grid;
  grid-template-columns: 340px 210px minmax(0, 1fr);
  align-items: start;
  gap: 48px;
}

.contacts__brand {
  position: relative;
  padding-right: 34px;
}

.contacts__brand::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 0;
  width: 1px;
  height: 120px;
  background: rgba(255, 255, 255, 0.38);
}

.contacts__logo {
  width: 340px;
  height: auto;
}

.contacts__menu {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.contacts__menu a {
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  font-weight: 500;
  transition: color var(--ease);
}

.contacts__menu a:hover,
.contacts__menu a:focus-visible {
  color: #ffffff;
}

.contacts__main {
  max-width: 620px;
  margin-left: auto;
  text-align: right;
}

.contacts__label {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contacts__phone {
  display: block;
  color: #ffffff;
  font-size: clamp(38px, 2.8vw, 56px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.contacts__email {
  display: inline-block;
  margin-top: 18px;
  color: #ffffff;
  font-size: clamp(28px, 2.05vw, 42px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.contacts__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.38);
}

.contacts__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 16px;
  line-height: 1.6;
}

.contacts__meta span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.contacts__meta span:not(:last-child)::after {
  content: "";
  width: 56px;
  height: 24px;
  background-image: url("../assets/img/slash-green.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex: 0 0 auto;
}

.contacts__dev {
  position: relative;
  flex: 0 0 auto;
  padding-left: 34px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  line-height: 1.4;
  white-space: nowrap;
}

.contacts__dev::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 54px;
  background: rgba(255, 255, 255, 0.38);
  transform: translateY(-50%);
}

.contacts__dev strong {
  color: #ffffff;
  font-weight: 700;
}

/* =========================================
   Responsive
========================================= */

@media (max-width: 1439px) {
  .supply__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
}

@media (max-width: 1279px) {
  :root {
    --container-pad: 32px;
    --header-height: 88px;
  }

  .header__logo {
    width: 292px;
  }

  .header__menu {
    gap: 24px;
  }

  .header__menu a {
    font-size: 17px;
  }

  .hero {
    min-height: 840px;
  }

  .hero__inner {
    padding-top: 132px;
  }

  .hero__title {
    max-width: 11.5ch;
  }

  .supply__grid,
  .competencies__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contacts {
    min-height: 760px;
  }

  .contacts__inner {
    padding-top: 118px;
  }

  .contacts__top {
    grid-template-columns: 292px 170px minmax(0, 1fr);
    gap: 30px;
  }

  .contacts__logo {
    width: 292px;
  }

  .contacts__brand::after {
    height: 110px;
  }

  .contacts__menu a {
    font-size: 16px;
  }
}

@media (max-width: 991px) {
  .header__burger {
    display: inline-flex;
  }

  .header__inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .header__nav {
    position: fixed;
    inset: 0;
    padding: 108px 32px 32px;
    background: linear-gradient(180deg, rgba(8, 24, 39, 0.98), rgba(8, 24, 39, 0.95));
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--ease), opacity var(--ease);
    justify-self: stretch;
  }

  .header__nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .header__menu {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .header__menu a {
    font-size: 28px;
    min-height: 56px;
  }

  .hero {
    min-height: 780px;
  }

  .hero__inner {
    padding-top: 156px;
    align-items: flex-start;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__text {
    max-width: 34ch;
  }

  .contacts__top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contacts__brand {
    padding-right: 0;
  }

  .contacts__brand::after {
    display: none;
  }

  .contacts__main {
    max-width: 100%;
    margin-left: 0;
    text-align: left;
  }

  .contacts__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .contacts__dev {
    padding-left: 0;
  }

  .contacts__dev::before {
    display: none;
  }
}

@media (max-width: 767px) {
  :root {
    --container-pad: 20px;
  }

  .header__logo {
    width: 220px;
  }

  .header__nav {
    padding: 100px 20px 24px;
  }

  .section-head {
    gap: 14px;
  }

  .section-head__eyebrow {
    font-size: 13px;
  }

  .section-head__title {
    font-size: 34px;
  }

  .section-head__text {
    font-size: 16px;
    line-height: 1.58;
  }

  .hero {
    min-height: auto;
    background-position: 68% center;
  }

  .hero__inner {
    min-height: 740px;
    padding-top: 146px;
    padding-bottom: 64px;
  }

  .hero__title {
    max-width: 100%;
    font-size: clamp(38px, 11vw, 52px);
  }

  .hero__text {
    max-width: 100%;
    margin-top: 24px;
    font-size: 18px;
  }

  .hero__button {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    margin-top: 30px;
    font-size: 18px;
  }

  .supply,
  .competencies {
    padding: 72px 0 60px;
    background-position: center top;
  }

  .supply__grid,
  .competencies__grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 34px;
  }

  .supply-card__link {
    gap: 14px;
    padding: 12px;
    border-radius: 22px;
  }

  .supply-card__title {
    min-height: auto;
    font-size: 22px;
  }

  .supply__note {
    align-items: flex-start;
    margin-top: 28px;
  }

  .supply__note-text {
    font-size: 16px;
  }

  .competency-card {
    min-height: auto;
    padding: 22px 22px 20px;
    border-radius: 22px;
  }

  .competency-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
  }

  .competency-card__title {
    font-size: 22px;
  }

  .competency-card__text {
    font-size: 16px;
  }

  .contacts {
    min-height: auto;
    background-position: 66% center;
  }

  .contacts__inner {
    padding-top: 108px;
    padding-bottom: 36px;
    gap: 40px;
  }

  .contacts__logo {
    width: 220px;
  }

  .contacts__menu {
    gap: 14px;
  }

  .contacts__menu a {
    font-size: 15px;
  }

  .contacts__label {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .contacts__phone {
    font-size: clamp(30px, 8vw, 36px);
  }

  .contacts__email {
    margin-top: 14px;
    font-size: clamp(22px, 6.8vw, 28px);
    word-break: break-word;
  }

  .contacts__meta {
    font-size: 14px;
    gap: 10px 14px;
  }

  .contacts__meta span {
    gap: 10px;
  }

  .contacts__dev {
    font-size: 14px;
    white-space: normal;
  }
}

@media (max-width: 479px) {
  :root {
    --container-pad: 16px;
  }

  .header__burger {
    width: 48px;
    height: 48px;
  }

  .hero__inner {
    min-height: 700px;
  }

  .hero__text,
  .supply__note-text,
  .competency-card__text {
    font-size: 15px;
  }

  .section-head__title {
    font-size: 30px;
  }

  .supply-card__title,
  .competency-card__title {
    font-size: 20px;
  }
}