/*!
 * Сайт «Метамодель» — собственные стили, без CSS-фреймворков.
 * Воспроизводит вид исходного сайта (Bootstrap 3.4.1 + тема Start Bootstrap
 * «Landing Page», Apache License v2.0) на чистом CSS: реализованы только
 * правила сетки, типографики и компонентов, которые реально используются.
 */

/* ===== Базовые стили (аналог Bootstrap 3 normalize + base) ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

body {
    font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;            /* базовая — как в Bootstrap 3 */
    font-weight: 700;
    line-height: 1.42857143;
    color: #333;
    background-color: #fff;
    -webkit-text-size-adjust: 100%;
}

/* ===== Заголовки ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.1;
    color: inherit;
}

h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }
h5 { font-size: 14px; }
h6 { font-size: 12px; }

/* ===== Текст ===== */
p {
    margin: 0 0 10px;
}

ul,
ol {
    margin-top: 0;
    margin-bottom: 10px;
    padding-left: 40px;
}

ul ul,
ol ul,
ul ol,
ol ol {
    margin-bottom: 0;
}

p,
ul,
ol {
    font-size: 18px;
    font-weight: 400;
    text-align: justify;
}

a {
    color: #337ab7;
    text-decoration: none;
}

a:hover,
a:focus {
    color: #23527c;
    text-decoration: underline;
}

hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eee;
}

/* Скрытый, но доступный для скринридеров текст */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ===== Изображения ===== */
img {
    max-width: 100%;
    height: auto;
}

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

/* ===== Инлайн-SVG иконки (замена Font Awesome) ===== */
.icon {
    width: 1.25em;          /* фиксированная ширина — иконки выравниваются в столбик */
    height: 1em;
    fill: currentColor;
    vertical-align: -0.125em;
    flex: 0 0 auto;
}

/* ===== Контейнер (сетка Bootstrap 3) ===== */
.container {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.container::before,
.container::after {
    display: table;
    content: " ";
}

.container::after {
    clear: both;
}

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

/* ===== Навигация (аналог .navbar-default .navbar-fixed-top) ===== */
.navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    background-color: #f8f8f8;
    border: 1px solid transparent;
    border-bottom: 1px solid #e7e7e7;
}

.navbar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 50px;
    padding-right: 15px;
    padding-left: 15px;
}

.navbar__brand {
    display: flex;
    align-items: center;
    height: 50px;
    font-size: 18px;
    color: #777;
    text-decoration: none;
}

.navbar__brand:hover,
.navbar__brand:focus {
    color: #333;
    text-decoration: none;
}

.navbar__toggle {
    display: none;
    padding: 9px 10px;
    margin: 8px 0 8px auto;
    cursor: pointer;
    background-color: transparent;
    background-image: none;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.navbar__toggle:focus {
    outline: 0;
}

.navbar__icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    margin-top: 4px;
    background-color: #888;
    border-radius: 1px;
}

.navbar__icon-bar:first-of-type {
    margin-top: 0;
}

.navbar__menu {
    display: flex;
    margin-left: auto;
}

.navbar__nav {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navbar__nav > li > a {
    display: block;
    padding: 15px;
    color: #777;
    line-height: 20px;
    text-decoration: none;
}

.navbar__nav > li > a:hover,
.navbar__nav > li > a:focus {
    color: #333;
    text-decoration: none;
    background-color: transparent;
}

.navbar__nav > li.is-active > a,
.navbar__nav > li.is-active > a:hover,
.navbar__nav > li.is-active > a:focus {
    color: #555;
    background-color: #e7e7e7;
}

@media (max-width: 767px) {
    .navbar__toggle {
        display: block;
    }

    .navbar__menu {
        display: none;
        flex-basis: 100%;
        margin-left: 0;
    }

    .navbar__menu.is-open {
        display: block;
    }

    .navbar__nav {
        display: block;
    }
}

/* ===== Двухколоночная раскладка (модель .row + .col-*) ===== */
.split {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.split > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .split__text  { width: 58.33333333%; }  /* 7/12 */
    .split__media { width: 41.66666667%; }  /* 5/12 */
}

.split--reverse > .split__text  { order: 2; }
.split--reverse > .split__media { order: 1; }

.split__media {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.split__media video {
    width: 100%;
    height: auto;
}

.split--reverse .thumbnail {
    margin-left: auto;
}

/* ===== Кнопки (аналог .btn-default .btn-lg) ===== */
.btn {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 5px 10px 0;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3333333;
    color: #333;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

.btn:hover,
.btn:focus {
    color: #333;
    text-decoration: none;
    background-color: #e6e6e6;
    border-color: #adadad;
}

.btn-block {
    display: block;
    width: 100%;
    margin-right: 0;
}

/* ===== Миниатюры, сетка картинок ===== */
.thumbnail {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    padding: 4px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.thumbnail img {
    display: block;
}

.thumb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.thumb-grid__item {
    text-align: center;
}

.thumb-caption {
    margin: .5rem 0 0;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 767px) {
    .thumb-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Встраиваемые iframe/video ===== */
.embed {
    position: relative;
    width: 100%;
    margin: 1rem 0;
}

.embed iframe,
.embed video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.embed--4x3  { aspect-ratio: 4 / 3; }
.embed--16x9 { aspect-ratio: 16 / 9; }

/* Якорь блока на главной (/#news, /#licensing, …) */
.anchor {
    display: block;
    height: 0;
    scroll-margin-top: 60px;
}

/* ===== Интро (шапка) ===== */
.intro-header {
    padding-top: 50px;      /* отступ под фиксированную навигацию */
    padding-bottom: 50px;
    text-align: center;
    color: #f8f8f8;
    background: url(../img/intro-bg.jpg) no-repeat center center;
    background-size: cover;
}

.intro-message {
    position: relative;
    padding-top: 20%;
    padding-bottom: 20%;
}

.intro-message > h1 {
    margin: 0;
    font-size: 5em;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, .6);
}

.intro-message > h3 {
    text-shadow: 2px 2px 3px rgba(0, 0, 0, .6);
}

.intro-divider {
    width: 400px;
    margin: 20px auto;
    border: 0;
    border-top: 1px solid #f8f8f8;
    border-bottom: 1px solid rgba(0, 0, 0, .2);
}

@media (max-width: 767px) {
    .intro-message {
        padding-bottom: 15%;
    }

    .intro-message > h1 {
        font-size: 3em;
    }

    .intro-divider {
        width: 100%;
    }
}

/* ===== Блоки услуг ===== */
.content-section-a {
    padding: 50px 0;
    background-color: #f8f8f8;
}

.content-section-b {
    padding: 50px 0;
    border-top: 1px solid #e7e7e7;
    border-bottom: 1px solid #e7e7e7;
}

.section-heading {
    margin: 0 0 30px;
}

.section-heading-spacer {
    width: 200px;
    margin: 1rem 0 20px;
    border: 0;
    border-top: 3px solid #e7e7e7;
}

/* ===== Контакты ===== */
.contact {
    padding: 100px 0;
    color: #f8f8f8;
    background: url(../img/contact-bg.jpg) no-repeat center center;
    background-size: cover;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.contact-grid > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 992px) {
    .contact-grid > * {
        width: 50%;         /* col-lg-6 */
    }
}

.lead {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 400;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 1rem;
}

/* ===== Подвал ===== */
footer {
    padding: 50px 0;
    background-color: #f8f8f8;
}

.copyright {
    margin: 15px 0 0;
}
