@font-face {
  font-family: "Avenir Next Cyr";

  src: local("Avenir Next Cyr"), local("Avenir Next");

  font-weight: 400 800;

  font-style: normal;
}

/* =========================================
   VARIABLES
========================================= */

:root {
  --blue: #0055bb;

  --cyan: #00b6ed;

  --orange: #ff5500;

  --gray: #8f9092;

  --dark: #0b1c31;

  --text: #17263d;

  --muted: #64748b;

  --background: #ffffff;

  --surface: #f5f8fc;

  --border: #e5eaf1;

  --container: 1240px;
}

/* =========================================
   RESET
========================================= */

* {
  box-sizing: border-box;

  margin: 0;

  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Avenir Next Cyr", "Avenir Next", Arial, sans-serif;

  color: var(--text);

  background: var(--background);

  line-height: 1.5;
}

a {
  color: inherit;

  text-decoration: none;
}

button,
input {
  font-family: inherit;
}

.container {
  width: min(var(--container), calc(100% - 48px));

  margin: 0 auto;
}

/* =========================================
   HEADER
========================================= */

.header-top {
  background: var(--dark);

  color: #c8d4e2;

  font-size: 13px;
}

.header-top-inner {
  min-height: 38px;

  display: flex;

  align-items: center;

  justify-content: space-between;
}

.header-top-links {
  display: flex;

  gap: 20px;

  align-items: center;
}

.header-top button {
  border: 0;

  background: transparent;

  color: #c8d4e2;

  cursor: pointer;
}

.navigation {
  background: #ffffff;

  border-bottom: 1px solid var(--border);

  position: sticky;

  top: 0;

  z-index: 100;
}

.navigation-inner {
  min-height: 86px;

  display: flex;

  align-items: center;

  gap: 30px;
}

.logo {
  display: flex;

  align-items: center;

  gap: 11px;

  flex-shrink: 0;
}

.logo-symbol {
  width: 46px;

  height: 46px;

  display: grid;

  place-items: center;

  border-radius: 12px;

  background: var(--blue);

  color: #ffffff;

  font-size: 25px;

  font-weight: 700;
}

.logo-text {
  display: flex;

  flex-direction: column;

  line-height: 1;
}

.logo-text strong {
  font-size: 21px;
}

.logo-text small {
  margin-top: 5px;

  color: var(--gray);

  font-size: 10px;

  letter-spacing: 0.14em;
}

.main-navigation {
  flex: 1;

  display: flex;

  justify-content: flex-end;

  gap: 25px;
}

.main-navigation a {
  font-size: 14px;

  font-weight: 600;
}

.main-navigation a:hover {
  color: var(--blue);
}

.navigation-actions {
  display: flex;

  gap: 5px;
}

.search-button,
.menu-button {
  border: 0;

  background: transparent;

  cursor: pointer;
}

.search-button {
  font-size: 29px;

  width: 42px;

  height: 42px;
}

.menu-button {
  display: none;
}

/* =========================================
   HERO
========================================= */

.hero {
  background: linear-gradient(135deg, #f5f9fd, #ffffff 60%, #edf8fd);
}

.hero-grid {
  min-height: 650px;

  display: grid;

  grid-template-columns: 1.03fr 0.97fr;

  align-items: center;

  gap: 60px;

  padding: 75px 0;
}

.eyebrow {
  color: var(--blue);

  font-size: 12px;

  font-weight: 800;

  letter-spacing: 0.16em;

  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(48px, 5.3vw, 76px);

  line-height: 1.02;

  letter-spacing: -0.045em;

  margin: 12px 0 25px;
}

.hero h1 span {
  color: var(--blue);

  display: block;
}

.hero-description {
  max-width: 610px;

  color: var(--muted);

  font-size: 19px;
}

.hero-buttons {
  display: flex;

  flex-wrap: wrap;

  gap: 12px;

  margin: 30px 0;
}

.button {
  min-height: 52px;

  padding: 0 22px;

  border-radius: 13px;

  display: inline-flex;

  align-items: center;

  gap: 14px;

  font-weight: 700;
}

.button-primary {
  background: var(--orange);

  color: #ffffff;
}

.button-secondary {
  background: #ffffff;

  color: var(--blue);

  border: 1px solid #b9c8da;
}

.hero-information {
  display: flex;

  gap: 22px;

  color: var(--gray);

  font-size: 13px;
}

.hero-information strong {
  color: var(--text);
}

.hero-visual {
  min-height: 500px;

  position: relative;
}

.hero-image {
  position: absolute;

  inset: 20px 0 0 55px;

  border-radius: 32px;

  overflow: hidden;
}

.hero-image-placeholder {
  width: 100%;

  height: 100%;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  text-align: center;

  color: #45627f;

  background: linear-gradient(135deg, #dce8f4, #b7cde3);
}

.hero-image-placeholder small {
  max-width: 250px;

  margin-top: 8px;
}

.floating-card {
  position: absolute;

  background: #ffffff;

  padding: 17px 19px;

  border-radius: 18px;

  box-shadow: 0 16px 45px rgba(23, 38, 61, 0.12);

  display: grid;

  gap: 5px;
}

.floating-card span {
  color: var(--gray);

  font-size: 11px;

  text-transform: uppercase;
}

.floating-card b {
  color: var(--orange);
}

.floating-card-top {
  left: 0;

  top: 65px;
}

.floating-card-bottom {
  right: -10px;

  bottom: 35px;
}

/* =========================================
   SECTIONS
========================================= */

.quick-access,
.education,
.services {
  padding: 105px 0;
}

.section-heading {
  display: flex;

  justify-content: space-between;

  align-items: end;

  gap: 30px;
}

.section-heading h2,
.about h2,
.services h2,
.contacts h2 {
  font-size: clamp(34px, 4vw, 52px);

  line-height: 1.08;

  letter-spacing: -0.04em;

  margin-top: 8px;
}

.section-heading > p {
  max-width: 360px;

  color: var(--muted);
}

/* =========================================
   QUICK CARDS
========================================= */

.quick-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 15px;

  margin-top: 45px;
}

.quick-card {
  min-height: 250px;

  padding: 25px;

  border-radius: 20px;

  background: var(--surface);

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  border: 1px solid transparent;

  transition: 0.25s;
}

.quick-card:hover {
  transform: translateY(-5px);

  box-shadow: 0 16px 45px rgba(23, 38, 61, 0.09);

  border-color: var(--border);

  background: #ffffff;
}

.quick-card-blue {
  background: var(--blue);

  color: #ffffff;
}

.quick-card-orange {
  background: #fff3eb;
}

.card-number {
  font-size: 12px;

  font-weight: 800;

  opacity: 0.65;
}

.quick-card h3 {
  font-size: 21px;

  line-height: 1.15;
}

.quick-card p {
  color: var(--muted);

  font-size: 14px;
}

.quick-card-blue p {
  color: #d8e9ff;
}

.card-arrow {
  color: var(--orange);

  font-size: 23px;

  align-self: flex-end;
}

/* =========================================
   ABOUT
========================================= */

.about {
  padding: 105px 0;

  background: var(--dark);

  color: #ffffff;
}

.about-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 90px;
}

.about .eyebrow {
  color: var(--cyan);
}

.about-description {
  color: #b8c7d8;

  font-size: 17px;
}

.about-description p + p {
  margin-top: 15px;
}

.text-link {
  display: inline-block;

  margin-top: 20px;

  color: var(--blue);

  font-weight: 800;
}

.about .text-link {
  color: #ffffff;
}

.statistics {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  margin-top: 80px;
}

.statistic {
  padding: 25px;

  border-right: 1px solid #2c3d51;
}

.statistic strong {
  display: block;

  font-size: 30px;
}

.statistic span {
  color: #91a3b8;

  font-size: 13px;
}

/* =========================================
   EDUCATION
========================================= */

.education-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 14px;

  margin-top: 45px;
}

.education-card {
  min-height: 210px;

  padding: 24px;

  border: 1px solid var(--border);

  border-radius: 18px;

  display: flex;

  flex-direction: column;

  transition: 0.25s;
}

.education-card span {
  color: var(--orange);

  font-weight: 800;

  font-size: 12px;
}

.education-card h3 {
  margin-top: auto;

  line-height: 1.2;
}

.education-card p {
  color: var(--muted);

  font-size: 13px;

  margin-top: 8px;
}

.education-card:hover {
  color: #ffffff;

  background: var(--blue);

  border-color: var(--blue);

  transform: translateY(-4px);
}

.education-card:hover p {
  color: #d8e9ff;
}

/* =========================================
   NEWS
========================================= */

.news {
  padding: 105px 0;

  background: var(--surface);
}

.news-grid {
  display: grid;

  grid-template-columns: 1.5fr 1fr 1fr;

  gap: 15px;

  margin-top: 45px;
}

.news-card {
  background: #ffffff;

  border: 1px solid var(--border);

  border-radius: 20px;

  overflow: hidden;
}

.news-image {
  height: 205px;

  padding: 18px;

  display: flex;

  align-items: flex-end;

  color: #ffffff;

  background: linear-gradient(135deg, var(--blue), var(--cyan));

  font-size: 11px;

  font-weight: 800;
}

.news-content {
  padding: 24px;
}

.news-content time {
  color: var(--gray);

  font-size: 12px;
}

.news-content h3 {
  font-size: 21px;

  line-height: 1.2;

  margin: 10px 0;
}

.news-content p {
  color: var(--muted);

  font-size: 14px;
}

.news-content a {
  display: inline-block;

  margin-top: 20px;

  color: var(--blue);

  font-weight: 700;
}

/* =========================================
   SERVICES
========================================= */

.services-grid {
  display: grid;

  grid-template-columns: 0.75fr 1.25fr;

  gap: 100px;
}

.services p {
  max-width: 370px;

  margin-top: 20px;

  color: var(--muted);
}

.service-list {
  border-top: 1px solid var(--border);
}

.service-list a {
  display: flex;

  justify-content: space-between;

  padding: 20px 5px;

  border-bottom: 1px solid var(--border);

  font-weight: 700;
}

.service-list b {
  color: var(--orange);
}

/* =========================================
   CONTACTS
========================================= */

.contacts {
  padding: 105px 0;

  background: #eef5fa;
}

.contacts-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 70px;
}

.contact-information {
  display: grid;

  gap: 20px;

  margin-top: 35px;
}

.contact-information span {
  display: block;

  color: var(--gray);

  font-size: 11px;

  text-transform: uppercase;

  letter-spacing: 0.12em;

  margin-bottom: 5px;
}

.contact-information strong {
  font-size: 16px;
}

.map-placeholder {
  min-height: 390px;

  border-radius: 25px;

  background: #d8e5f0;

  display: flex;

  flex-direction: column;

  justify-content: center;

  align-items: center;

  color: #56708b;
}

.map-placeholder small {
  margin-top: 8px;
}

/* =========================================
   FOOTER
========================================= */

.footer {
  padding: 70px 0 25px;

  background: var(--dark);

  color: #ffffff;
}

.footer-grid {
  display: grid;

  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;

  gap: 45px;
}

.footer-logo .logo-symbol {
  background: var(--orange);
}

.footer-grid p,
.footer-grid a,
.footer-grid span {
  display: block;

  color: #96a8bc;

  font-size: 13px;

  margin-top: 10px;
}

.footer-grid h4 {
  margin: 0 0 18px;
}

.footer-bottom {
  display: flex;

  justify-content: space-between;

  margin-top: 55px;

  padding-top: 20px;

  border-top: 1px solid #26384e;

  color: #74879f;

  font-size: 12px;
}

/* =========================================
   SEARCH
========================================= */

.search-overlay {
  position: fixed;

  inset: 0;

  z-index: 1000;

  display: none;

  align-items: center;

  background: rgba(11, 28, 49, 0.97);

  color: #ffffff;
}

.search-overlay.active {
  display: flex;
}

.search-box {
  position: relative;

  width: min(800px, calc(100% - 40px));

  margin: auto;
}

.search-box button {
  position: absolute;

  right: 0;

  top: -50px;

  background: transparent;

  border: 0;

  color: #ffffff;

  font-size: 40px;
}

.search-box input {
  width: 100%;

  border: 0;

  border-bottom: 2px solid #48617c;

  background: transparent;

  color: #ffffff;

  font-size: 42px;

  padding: 15px 0;

  outline: none;
}

.search-box p {
  color: #8fa3b9;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 1050px) {
  .main-navigation {
    gap: 14px;
  }

  .main-navigation a {
    font-size: 12px;
  }

  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .education-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .news-card-large {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  .container {
    width: calc(100% - 32px);
  }

  .header-top-inner {
    justify-content: center;
  }

  .header-top-inner > span {
    display: none;
  }

  .navigation-inner {
    min-height: 72px;
  }

  .main-navigation {
    display: none;

    position: absolute;

    left: 0;

    right: 0;

    top: 72px;

    background: #ffffff;

    padding: 10px 20px 20px;

    flex-direction: column;

    gap: 0;

    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }

  .main-navigation.active {
    display: flex;
  }

  .main-navigation a {
    padding: 13px;

    border-bottom: 1px solid var(--border);

    font-size: 15px;
  }

  .menu-button {
    display: block;

    width: 42px;

    height: 42px;
  }

  .hero-grid,
  .about-grid,
  .services-grid,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding: 60px 0;
  }

  .hero-visual {
    min-height: 400px;
  }

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

@media (max-width: 560px) {
  .hero h1 {
    font-size: 44px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .button {
    justify-content: center;
  }

  .hero-information {
    flex-direction: column;

    gap: 5px;
  }

  .hero-image {
    inset: 15px 0 0 20px;
  }

  .floating-card {
    font-size: 13px;
  }

  .quick-grid,
  .education-grid,
  .news-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .news-card-large {
    grid-column: auto;
  }

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

  .section-heading {
    flex-direction: column;

    align-items: flex-start;
  }

  .quick-access,
  .education,
  .services,
  .news,
  .contacts {
    padding: 75px 0;
  }

  .footer-bottom {
    flex-direction: column;

    gap: 12px;
  }

  .search-box input {
    font-size: 30px;
  }
}

/* =========================================
   HIGH CONTRAST
========================================= */

body.high-contrast {
  background: #000000;

  color: #ffffff;
}

body.high-contrast .navigation,
body.high-contrast .quick-card,
body.high-contrast .education-card,
body.high-contrast .news-card {
  background: #111111;

  color: #ffffff;
}

body.high-contrast a {
  color: #ffffff;
}
