@font-face {
  font-family: "Montserrat";
  src: url("../font/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../font/Montserrat-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../font/Montserrat-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../font/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Unbounded";
  src: url("../font/Unbounded-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* Брендбук Политех — цветовая палитра и дизайн-токены */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg-light);
  font-family: var(--font-sans);
}

:root {
  --color-bg-light: #d7d7d7;
  --color-dark-blue: #142e54;
  --color-medium-blue: #28528e;
  --color-accent: #deaa4a;
  --color-light-blue: #93c0e3;
  --color-white: #ffffff;
  --color-text-on-light: #142e54;
  --color-text-on-dark: #ffffff;
  --color-nav-muted: #6b7a8f;
  --font-sans: "Montserrat", sans-serif;
  --font-heading: "Unbounded", var(--font-sans);
  --h1-size: 80px;
  --h2-size: 36px;
  --h3-size: 24px;
  --container-max: 1200px;
  --radius-btn: 8px;
  --radius-card: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 2px 12px rgba(20, 46, 84, 0.08);
  --shadow-card-hover: 0 12px 32px rgba(20, 46, 84, 0.14);
  --shadow-btn: 0 4px 14px rgba(20, 46, 84, 0.25);
  --transition-smooth: 0.25s ease;
  --accent-gradient: linear-gradient(135deg, var(--color-accent) 0%, #e8b85a 100%);
  --section-accent-line: 4px solid var(--color-accent);
}

.main-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

h1 {
  color: var(--color-dark-blue);
}

h1,
h2,
h3 {
  font-family: var(--font-heading) !important;
  font-weight: 400 !important;
  line-height: 1.25;
}

h1 {
  font-size: var(--h1-size) !important;
}

h2 {
  font-size: var(--h2-size) !important;
}

h3 {
  font-size: var(--h3-size) !important;
}

@media (max-width: 1200px) {
  :root {
    --h1-size: 48px;
    --h2-size: 32px;
    --h3-size: 22px;
  }
}

@media (max-width: 900px) {
  :root {
    --h1-size: 40px;
    --h2-size: 28px;
    --h3-size: 20px;
  }
}

@media (max-width: 600px) {
  :root {
    --h1-size: 32px;
    --h2-size: 24px;
    --h3-size: 18px;
  }

  h1,
  h2,
  h3 {
    line-height: 1.2;
  }
}

.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--color-dark-blue);
  color: var(--color-white) !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-btn);
  transition: background-color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.btn-primary:hover {
  background-color: var(--color-medium-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20, 46, 84, 0.3);
}

/* Reusable dark CTA section */
.section-dark {
  background-color: var(--color-dark-blue);
  color: var(--color-text-on-dark);
  padding: 56px 24px;
  position: relative;
  overflow: hidden;
}

.section-dark-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.section-dark-title {
  margin: 0 0 16px;
  line-height: 1.35;
  max-width: 720px;
}

.section-dark-title strong {
  font-size: 1.15em;
  color: var(--color-accent);
}

.section-dark-text {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 24px;
  opacity: 0.92;
  max-width: 640px;
}

.section-dark-shape {
  position: absolute;
  right: -170px;
  top: 0;
  width: 700px;
  height: 700px;
  background: url("../img/circleLogo.svg") no-repeat center center;
  background-size: contain;
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}

.section-dark-title,
.section-dark-text,
.section-dark .btn-primary,
.section-dark .btn-cta-inverse {
  position: relative;
  z-index: 2;
}
