/* ==========================================================================
   main.css — unified overrides for the static build of keysoft.su
   Normalises typography, spacing, forms and responsive layout
   on top of the original style.css / adapt.css
   ========================================================================== */

/* --- Base typography ---------------------------------------------------- */
html {
    font-size: 14px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    color: #4a4a4a;
    background: #fff;
    margin: 0;
    padding: 0;
}

/* --- Headings ----------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-weight: 400;
    color: #676767;
    line-height: 1.3;
    margin-top: 0;
}

h1 { font-size: 1.6rem; margin-bottom: .6em; }
h2 { font-size: 1.35rem; margin-bottom: .5em; }
h3 { font-size: 1.15rem; margin-bottom: .4em; }

/* --- Paragraphs, lists, blockquotes ------------------------------------- */
p {
    margin: 0 0 1em;
    font-size: 13px;
    color: #676767;
    line-height: 1.8;
}

ul, ol {
    margin: 0 0 1em 1.5em;
    padding: 0;
}

li {
    margin-bottom: .35em;
    line-height: 1.7;
    font-size: 13px;
    color: #676767;
}

blockquote {
    margin: 1em 0;
    padding: .8em 1.2em;
    border-left: 4px solid #f89838;
    background: #fafafa;
    color: #676767;
    font-size: 13px;
}

/* --- Tables ------------------------------------------------------------- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
    font-size: 13px;
}

th, td {
    padding: 8px 10px;
    border: 1px solid #e5e5e5;
    text-align: left;
    color: #676767;
}

th {
    background: #f5f5f5;
    font-weight: 600;
}

/* --- Images ------------------------------------------------------------- */
img {
    max-width: 100%;
    height: auto;
}

.inner_page_content img,
.inner_page_single img {
    max-width: 100%;
    height: auto;
    border-radius: 3px;
}

/* --- Links -------------------------------------------------------------- */
a {
    color: #f89838;
    text-decoration: none;
    transition: color .2s;
}

a:hover {
    color: #e07800;
}

/* --- Forms — unified styling -------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
    font-family: inherit;
    font-size: 13px;
    color: #4a4a4a;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    padding: 8px 12px;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #f89838;
    box-shadow: 0 0 4px rgba(248,152,56,.3);
    outline: none;
}

input[type="submit"],
button,
.button {
    display: inline-block;
    font-family: inherit;
    font-size: 12px;
    text-transform: uppercase;
    padding: 8px 24px;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    background: linear-gradient(to bottom, #f8f8f8, #fefefe);
    color: #676767;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all .2s;
}

input[type="submit"]:hover,
button:hover,
.button:hover {
    background: linear-gradient(to bottom, #2c2c2c, #353535);
    border-color: #4d4d4d;
    color: #fff;
}

/* --- Section spacing ---------------------------------------------------- */
section {
    margin-bottom: 0;
}

.inner_page_content,
.inner_page_single {
    min-height: 400px;
}

.inner_page_content article,
.inner_page_single article {
    padding-bottom: 2em;
}

/* --- Правый блок (news_right) удалён — контент занимает всю ширину --- */
.inner_page_content,
.inner_page_single,
.inner_page_newslist {
    width: 100%;
    max-width: 100%;
}

/* --- Inner page content normalisation ----------------------------------- */
.inner_page_content p,
.inner_page_single p {
    font-size: 13px;
    line-height: 1.8;
    color: #676767;
    margin-bottom: .8em;
}

.inner_page_content ul,
.inner_page_single ul {
    list-style-type: disc;
    line-height: 1.7;
}

.inner_page_content ol,
.inner_page_single ol {
    line-height: 1.7;
}

.inner_page_content ul li,
.inner_page_single ul li {
    height: auto;
    line-height: 1.7;
    float: none;
    margin-left: 0;
    font-weight: normal;
}

/* --- Person cards (team page) ------------------------------------------- */
.person img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 8px;
}

.person p {
    font-size: 13px;
    font-weight: 600;
    color: #4a4a4a;
    margin-bottom: 2px;
}

/* --- Certificates grid -------------------------------------------------- */
.certificate {
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.certificate:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

/* --- Footer ------------------------------------------------------------- */
footer {
    border-top: 1px solid #ececec;
    padding-top: 20px;
}

footer a {
    color: #9b9b9b;
}

footer a:hover {
    color: #f89838;
}

footer a.footer-email,
footer a[href^="mailto:"] {
    color: #f89838;
}

footer .footer-company {
    margin-top: 15px;
    font-size: 12px;
    line-height: 1.6;
    color: #9b9b9b;
}

/* E-mail как ссылка — оранжевый цвет на страницах контента */
a[href^="mailto:"] {
    color: #f89838;
}

a[href^="mailto:"]:hover {
    color: #e07800;
}

/* --- Responsive improvements -------------------------------------------- */
@media (max-width: 1200px) {
    .wrapper {
        padding: 0 15px;
    }
    .slider {
        width: 100%;
    }
    .slider img {
        width: 100%;
    }
}

@media (max-width: 960px) {
    .inner_page_content,
    .inner_page_single,
    .inner_page_newslist {
        width: 100%;
        float: none;
    }
    .news_right {
        width: 100%;
        float: none;
        padding-left: 0;
        margin-top: 30px;
    }
    .logos article {
        width: 100%;
        margin-left: 0;
        margin-bottom: 30px;
    }
    .links article {
        width: 48%;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    nav {
        float: none;
        margin-top: 15px;
        height: auto;
    }
    nav ul li {
        float: none;
        border-left: 0;
        border-bottom: 1px solid #e5e5e5;
        padding: 8px 0;
    }
    .logo {
        float: none;
        margin-left: 0;
        text-align: center;
        display: block;
    }
    .inner_page_adresses article {
        width: 100%;
        float: none;
        margin-right: 0;
        margin-bottom: 20px;
    }
    .contact_form .input_text input {
        width: 100%;
        margin-left: 0;
        margin-bottom: 10px;
    }
    .contact_form .input_area textarea {
        width: 100%;
    }
    .links article {
        width: 100%;
    }
}

/* --- Section links (временно скрыта для 2 этапа) ----------------
   .links-block = hr + section, скрываем целиком */
.links-block {
    display: none !important;
}

/* --- Logo: ссылка только на изображение, текст без ссылки ------ */
.logo {
    display: block;
    float: left;
}
.logo-slogan {
    font-size: 12px;
    color: #c6c6c6;
    text-transform: uppercase;
    font-family: "Trebuchet MS", sans-serif;
    cursor: default;
    vertical-align: middle;
}
.logo a {
    display: inline;
}
.logo img {
    vertical-align: middle;
}
.logo:hover .logo-slogan {
    color: #c6c6c6;
}

/* --- Slider: cursor pointer на всём кликабельном слайде -------- */
.slider > div {
    cursor: pointer;
}
.slider .controls {
    cursor: pointer;
}

/* --- Logos: скрыть кнопки «подробнее» (временно) ---------------- */
section.logos .button {
    display: none !important;
}

/* --- Logos: заголовки — ссылки, без подчёркивания ------------- */
section.logos h2 a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
section.logos h2 a:hover {
    color: #f89838;
}

/* --- Utility ------------------------------------------------------------ */
.clearer { clear: both; }

.form-message {
    font-size: 13px;
    min-height: 1.2em;
}
