/*
  Оформление сайта Forbeno.

  Значения (цвета, размеры, отступы) перенесены со старого сайта один в один:
  их сняли с работающей старой страницы в браузере. Менять без нужды не стоит —
  иначе новая страница перестанет совпадать со старой.

  Ширины экрана, на которых меняется раскладка (как в старом шаблоне):
    1200px и меньше — уменьшаются вертикальные отступы разделов;
    991px и меньше  — всё в одну колонку, текст по центру, заголовки мельче;
    767px и меньше  — блоки «Why choose» тоже в одну колонку.
*/

/* ---------- Основные цвета ---------- */
:root {
  --accent: #00dfc2;        /* фирменный бирюзовый */
  --accent-hover: #00bba3;  /* бирюзовый при наведении на кнопку */
  --dark: #252830;          /* фон шапки и раздела контактов */
  --light: #f8f9fb;         /* светлый фон раздела About */
  --text: #555;             /* основной текст */
  --heading: #222;          /* заголовки на светлом фоне */
  --line: #e8e8e8;          /* тонкая линия между разделами */
}

/* ---------- Общие правила ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth; /* плавная прокрутка к разделам по ссылкам меню */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Hind', sans-serif;
  font-size: 17px;
  font-weight: lighter;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}

::selection {
  background: #00c0ff;
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease-out;
}

img {
  vertical-align: middle;
  border: 0;
}

p {
  margin: 0 0 10px;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

strong,
b {
  font-weight: 700;
}

h1,
h2,
h3 {
  color: var(--heading);
  font-family: 'Roboto', sans-serif;
  font-weight: 100;
  line-height: 1.2;
  letter-spacing: 0.5px;
  margin: 20px 0 10px;
}

h1 { font-size: 60px; }
h2 { font-size: 44px; margin: 0 0 30px; }
h3 { font-size: 26px; font-weight: 300; }

/* Бирюзовая чёрточка под заголовками разделов */
h2::after {
  content: '';
  display: block;
  width: 100px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
  margin-top: 13px;
}

/* Значки (SVG). Размер задаётся размером шрифта, как у старого шрифта-иконок */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: -0.0625em;
}

/* ---------- Сетка: контейнер и колонки ---------- */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col {
  width: 100%;
  padding: 0 15px;
}

@media (min-width: 768px) {
  .container { width: 750px; }
  .col-half-sm { width: 50%; }
}

@media (min-width: 992px) {
  .container { width: 970px; }
  .col-half { width: 50%; }
  .col-quarter { width: 25%; }
  .col-5 { width: 41.6667%; }
}

@media (min-width: 1200px) {
  .container { width: 1170px; }
}

/* ---------- Разделы ---------- */
section,
header {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 150px 0;
  border-bottom: 1px solid var(--line);
}

.cover-bg {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block;
  padding: 22px 35px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3333333;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.25s ease-in;
}

.btn .icon {
  margin-right: 10px;
}

.btn-outline {
  border-color: #fff;
  color: #fff;
}

.btn-primary {
  border: none;
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--accent-hover);
}

/* ---------- Шапка с видео ---------- */
.intro {
  padding: 170px 0 150px;
  border-bottom: none;
  background: var(--dark);
  color: #fff;
  text-align: center;
}

.intro h1 {
  color: #fff;
}

.intro h1 strong {
  color: var(--accent);
}

.intro-inner {
  position: relative;
  z-index: 1;
  padding: 0 15px;
}

.intro-text {
  margin: 50px 0 0;
  font-size: 18px;
  opacity: 0.7;
}

/* Отступ до кнопки — как в старой странице (там его давал пустой абзац) */
.intro .btn {
  margin: 77.5px 0 1px;
}

/*
  Видео стоит неподвижно за шапкой и просвечивает наполовину.
  Высота 760px — чуть больше самой высокой шапки, чтобы видео всегда
  закрывало её целиком. object-position 85% по вертикали прижимает кадр
  к нижней части, где плывёт корабль, — так он виден на любом экране.
*/
.intro-video {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -100;
  width: 100%;
  height: 760px;
  object-fit: cover;
  object-position: 50% 85%;
  opacity: 0.5;
}

/* Полоса с логотипом и меню */
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 18px 70px;
  background: rgba(0, 0, 0, 0.1);
  text-align: left;
  z-index: 2;
}

.logo {
  max-width: 250px;
  height: auto;
}

.nav {
  position: absolute;
  top: 50%;
  right: 70px;
  transform: translateY(-50%);
  font-size: 18px;
  line-height: 100%;
  text-transform: uppercase;
}

.nav a {
  margin-left: 36px;
}

/* ---------- About us ---------- */
.about {
  background: var(--light);
}

.about p {
  font-size: 20px;
}

.about .btn {
  margin-top: 36px;
}

.about-photo {
  max-width: 100%;
  height: auto;
}

@media (min-width: 992px) {
  /* Текст слева, фото справа (в коде фото идёт первым — для телефонов) */
  .about-text { order: -1; }
  .about-photo-col { margin-left: 8.3333%; }
}

/* ---------- Why choose ---------- */
.why h2,
.why h3,
.why-lead {
  color: #fff;
}

.why h2 {
  margin-bottom: 60px;
}

.why-lead {
  margin: 0 0 60px;
  font-size: 24px;
}

.why-list {
  text-align: center;
}

.why-item {
  min-height: 260px;
  margin-bottom: 30px;
  padding: 40px;
  border: 2px solid var(--accent);
  border-radius: 3px;
  color: #fff;
}

.why-item .icon {
  font-size: 48px;
  opacity: 0.5;
}

/* ---------- Services ---------- */
.services {
  padding-bottom: 70px;
  background: #fff;
}

.services p {
  margin-bottom: 36px;
  font-size: 20px;
}

.services-photo {
  max-width: 100%;
  height: auto;
}

.services-more {
  margin-top: 60px;
}

.services hr {
  height: 0;
  margin: 70px 0;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.services .services-highlight {
  margin: 0 0 36px;
  font-size: 36px;
  text-align: center;
  text-transform: uppercase;
}

.services-highlight b {
  color: var(--accent);
}

/* ---------- Contact Us ---------- */
.contact {
  background-color: var(--dark);
  color: #fff;
}

.contact h2 {
  color: #fff;
  margin-bottom: 60px;
}

.contact-lead {
  margin: 0 0 60px;
}

.contact-list li {
  position: relative;
  padding: 0 0 30px 45px;
}

.contact-list .icon {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 22.1px;
  opacity: 0.4;
}

/* ---------- Узкие экраны ---------- */
@media (max-width: 1200px) {
  section { padding-top: 100px; padding-bottom: 100px; }
  .intro { padding-bottom: 100px; }
  .services { padding-bottom: 70px; }
}

@media (max-width: 991px) {
  body { text-align: center; }

  section { padding-top: 80px; padding-bottom: 80px; }
  .intro { padding-top: 190px; padding-bottom: 80px; }
  .intro-inner { padding: 0 25px; }
  .services { padding-bottom: 70px; }

  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  h3 { font-size: 24px; }

  /* Колонки друг под другом, с отступом между ними */
  .stack > .col { padding-bottom: 40px; }
  .stack > .col:last-child { padding-bottom: 0; }

  /* Меню под логотипом. На старом сайте здесь меню наезжало на логотип */
  .topbar {
    padding: 15px;
    text-align: center;
  }
  .nav {
    position: static;
    transform: none;
    margin-top: 10px;
    font-size: 15px;
    line-height: 2;
  }
  .nav a {
    display: inline-block;
    margin: 0 10px;
  }

  /* Значки контактов — над текстом, по центру */
  .contact-list li { padding-left: 0; }
  .contact-list .icon {
    position: static;
    display: block;
    margin: 0 auto 10px;
  }
}

@media (max-width: 767px) {
  .why-list .row > .col { padding-bottom: 0; }
}
