/* === Fonts === */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/manrope-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/lora-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/lora-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/lora-ruble.woff2') format('woff2');
  unicode-range: U+20BD;
}

/* === Tokens === */
:root {
  --dark: #101c2c;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #e8590c;
  --accent-dark: #c94a06;
  --bg: #ffffff;
  --soft: #f7f4f1;
  --line: #e8e4df;
  --radius: 16px;
  --container: 1300px;
  --header-h: 80px;
  --font-head: 'Lora', Georgia, 'Times New Roman', serif;
}

/* === Heading font === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

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

button {
  font: inherit;
}

body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* === Layout === */
.section_container {
  width: 100%;
  max-width: calc(var(--container) + 48px);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.section__head {
  margin-bottom: 68px;
}

.section__kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.section__title {
  color: var(--dark);
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
}

.section__subtitle {
  max-width: 720px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
}

.skip_link {
  position: absolute;
  top: -100px;
  left: 24px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--dark);
  color: #fff;
  border-radius: 8px;
}

.skip_link:focus {
  top: 12px;
}

/* === Buttons === */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.button_accent {
  background: var(--accent);
  color: #fff;
}

.button_accent:hover {
  background: var(--accent-dark);
}

.button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(232, 89, 12, 0.3);
}

/* === Social === */
.social {
  display: flex;
  align-items: center;
}

.social__item {
  margin-right: 8px;
}

.social__item:last-child {
  margin-right: 0;
}

.social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--dark);
  transition: background-color 0.2s, color 0.2s;
}

.social__link:hover {
  background: var(--accent);
  color: #fff;
}

.social__icon {
  display: block;
  width: 20px;
  height: 20px;
}

.social__icon_max {
  width: 16px;
  height: 16px;
}

/* === Header === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 60;
  background: #fff;
  transition: box-shadow 0.25s;
}

.header.is_scrolled {
  box-shadow: 0 10px 30px rgba(16, 28, 44, 0.08);
}

.header__container {
  display: flex;
  align-items: center;
  height: var(--header-h);
}

.header__brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  margin-right: 0;
  color: var(--dark);
}

.header__logo {
  display: block;
  width: auto;
  height: 50px;
}

.header__slogan {
  flex: 0 0 auto;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.header__nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  margin: 0 12px;
}

.nav__list {
  display: flex;
  align-items: center;
}

.nav__item {
  margin-right: 10px;
}

.nav__item:last-child {
  margin-right: 0;
}

.nav__link {
  display: block;
  padding: 6px 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--accent);
}

.header__contacts {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.header__phone {
  margin-right: 12px;
  color: var(--dark);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.header__social {
  margin-right: 12px;
}

.header__button {
  padding: 10px 18px;
  font-size: 14px;
}

.header__login {
  margin-left: 10px;
  padding: 9px 17px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--dark);
  font-size: 14px;
}

.header__login:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.header__burger {
  display: none;
}

/* === Burger === */
.burger {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--dark);
  cursor: pointer;
}

.burger__line {
  display: block;
  width: 22px;
  height: 2px;
  margin-bottom: 5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.burger__line:last-child {
  margin-bottom: 0;
}

.burger.is_active .burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is_active .burger__line:nth-child(2) {
  opacity: 0;
}

.burger.is_active .burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* === Mobile menu === */
.mobile_menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  z-index: 55;
  width: 100%;
  max-height: calc(100vh - var(--header-h));
  padding: 8px 24px 24px;
  overflow-y: auto;
  background: #fff;
  box-shadow: 0 20px 40px rgba(16, 28, 44, 0.12);
}

.mobile_menu__item {
  border-bottom: 1px solid var(--line);
}

.mobile_menu__link {
  display: block;
  padding: 14px 0;
  color: var(--dark);
  font-size: 18px;
  font-weight: 600;
}

.mobile_menu__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 22px;
}

.mobile_menu__phone {
  color: var(--dark);
  font-size: 20px;
  font-weight: 800;
}

.mobile_menu__social {
  margin: 16px 0 20px;
}

.mobile_menu__button {
  width: 100%;
}

.mobile_menu__login {
  display: block;
  margin-top: 16px;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}

.mobile_menu__login:hover {
  color: var(--accent);
}

/* === Hero === */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  overflow: hidden;
  background: var(--dark);
  scroll-margin-top: var(--header-h);
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(9, 17, 28, 0.94) 10%, rgba(9, 17, 28, 0.8) 35%, rgba(9, 17, 28, 0.06) 44%, rgba(9, 17, 28, 0.02) 100%);
}

.hero__container {
  position: relative;
  z-index: 2;
  padding-top: 64px;
  padding-bottom: 64px;
}

.hero__content {
  max-width: 640px;
  color: #fff;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 26px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero__title {
  margin-bottom: 22px;
  font-family: var(--font-head);
  font-size: 54px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.14;
}

.hero__subtitle {
  max-width: 540px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.hero__button {
  padding: 18px 40px;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
