/*
Theme Name: Кайлас
Theme URI: https://kaylasprom.ru
Description: Современная лёгкая тема для сайта «Кайлас» — промышленный альпинизм и высотные работы. Без внешних зависимостей, совместима с PHP 7.4–8.3 и WordPress 6/7.
Author: Кайлас
Version: 1.0
Text Domain: kaylas
*/

:root {
    --bg: #1a1a1a;
    --bg2: #222222;
    --bg3: #2b2b2b;
    --accent: #ffd21a;
    --text: #e8e8e8;
    --muted: #a8a8a8;
    --line: #3a3a3a;
    --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
}

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

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: #ffe57a; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; margin: 0 0 .6em; color: #fff; }
h1 { font-size: 30px; text-transform: uppercase; letter-spacing: .5px; }
h2 { font-size: 26px; text-transform: uppercase; letter-spacing: .5px; }
h2::after { content: ""; display: block; width: 60px; height: 3px; background: var(--accent); margin-top: 12px; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em 22px; }
li { margin-bottom: .4em; }

/* ---------- Шапка ---------- */
.site-header {
    background: #141414;
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 100;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; padding: 14px 20px; max-width: var(--maxw); margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 14px; }
.logo img { width: auto; height: 56px; }
.logo .logo-text { line-height: 1.2; }
.logo .logo-name { font-size: 20px; font-weight: 800; letter-spacing: 1px; color: #fff; text-transform: uppercase; }
.logo .logo-name span { color: var(--accent); }
.logo .logo-sub { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; }

.header-contacts { text-align: right; font-size: 14px; color: var(--muted); line-height: 1.5; }
.header-contacts a { color: var(--text); font-size: 16px; font-weight: 700; }
.header-contacts a:hover { color: var(--accent); }
.header-contacts .hc-mail { font-weight: 400; font-size: 14px; }

/* ---------- Меню ---------- */
.main-nav { background: #141414; border-top: 1px solid var(--line); }
.main-nav ul { display: flex; justify-content: center; list-style: none; margin: 0; padding: 0; max-width: var(--maxw); margin: 0 auto; flex-wrap: wrap; }
.main-nav a {
    display: block; padding: 15px 28px; color: var(--text);
    text-transform: uppercase; font-size: 13px; letter-spacing: 1px; font-weight: 700;
}
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a {
    color: var(--accent); background: #000;
}
.menu-toggle {
    display: none; width: 100%; padding: 14px; background: #141414;
    color: var(--accent); border: none; font-size: 15px; text-transform: uppercase;
    letter-spacing: 1px; cursor: pointer; font-weight: 700;
}

/* ---------- Герой / слайдер ---------- */
.hero { position: relative; overflow: hidden; background: #000; }
.hero-slides { position: relative; height: 460px; }
.hero-slide {
    position: absolute; inset: 0; opacity: 0; transition: opacity 1s;
    background-size: cover; background-position: center;
    display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.25) 60%, rgba(0,0,0,.1) 100%);
}
.hero-caption { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; width: 100%; }
.hero-caption h2 { font-size: 40px; color: #fff; margin-bottom: 10px; }
.hero-caption h2::after { display: none; }
.hero-caption p { font-size: 18px; color: #ddd; max-width: 560px; margin: 0; }
.hero-btn {
    display: inline-block; margin-top: 22px; padding: 13px 32px;
    background: var(--accent); color: #141414; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px; font-size: 13px;
}
.hero-btn:hover { background: #ffe57a; color: #000; }
.hero-dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.hero-dots button {
    width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff;
    background: transparent; cursor: pointer; padding: 0;
}
.hero-dots button.active { background: var(--accent); border-color: var(--accent); }

/* ---------- Секции ---------- */
.section { padding: 60px 0; }
.section:nth-child(even) { background: var(--bg2); }
.section-lead { color: var(--muted); max-width: 760px; margin-bottom: 34px; }

/* ---------- Карточки услуг ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
    background: var(--bg3); border: 1px solid var(--line);
    display: flex; flex-direction: column; overflow: hidden; transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; filter: grayscale(100%); transition: filter .3s; }
.card:hover img { filter: grayscale(0%); }
.card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 17px; margin-bottom: 8px; }
.card-body h3 a { color: #fff; }
.card-body h3 a:hover { color: var(--accent); }
.card-body p { font-size: 14px; color: var(--muted); flex: 1; }
.card-more { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-top: 12px; }

/* ---------- Преимущества ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .f-num {
    color: var(--accent); font-weight: 800; font-size: 20px; line-height: 1;
    min-width: 30px;
}
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Контентные страницы ---------- */
.page-content { padding: 50px 0 60px; }
.page-content .entry-content { max-width: 860px; }
.page-content img { border: 1px solid var(--line); margin: 10px 0 20px; }
.alignleft { float: left; margin-right: 22px; }
.alignright { float: right; margin-left: 22px; }
.aligncenter { display: block; margin: 10px auto 20px; }

/* ---------- Контакты ---------- */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-block { background: var(--bg3); border: 1px solid var(--line); padding: 30px; }
.contact-block .c-row { display: flex; gap: 12px; margin-bottom: 14px; font-size: 16px; }
.contact-block .c-label { color: var(--muted); min-width: 90px; }
.contact-block a { color: #fff; font-weight: 700; }

/* ---------- Формы ---------- */
form.wpcf7-form input[type="text"],
form.wpcf7-form input[type="email"],
form.wpcf7-form input[type="tel"],
form.wpcf7-form textarea,
.wpcf7 input[type="text"], .wpcf7 input[type="email"],
.wpcf7 input[type="tel"], .wpcf7 textarea {
    width: 100%; padding: 12px 14px; background: var(--bg); color: var(--text);
    border: 1px solid var(--line); margin-bottom: 12px; font-size: 15px;
}
.wpcf7 input[type="submit"] {
    background: var(--accent); color: #141414; border: none; padding: 13px 36px;
    font-weight: 800; text-transform: uppercase; letter-spacing: 1px; cursor: pointer;
}

/* ---------- Подвал ---------- */
.site-footer { background: #101010; border-top: 1px solid var(--line); margin-top: 0; }
.footer-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 34px 20px;
    display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    font-size: 14px; color: var(--muted);
}
.footer-inner a { color: var(--text); }
.footer-inner a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid var(--line); padding: 14px 20px; text-align: center;
    font-size: 13px; color: #666;
}

/* ---------- Пагинация / хлебные ---------- */
.posts-nav { margin: 40px 0 0; text-align: center; }
.posts-nav a, .posts-nav span { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); margin: 0 3px; color: var(--text); }
.posts-nav .current { background: var(--accent); color: #141414; border-color: var(--accent); }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .features { grid-template-columns: 1fr; }
    .contacts-grid { grid-template-columns: 1fr; }
    .header-contacts { display: none; }
    .hero-slides { height: 360px; }
    .hero-caption h2 { font-size: 30px; }
}
@media (max-width: 640px) {
    .cards { grid-template-columns: 1fr; }
    .menu-toggle { display: block; }
    .main-nav ul { display: none; flex-direction: column; }
    .main-nav ul.open { display: flex; }
    .main-nav a { padding: 13px 20px; border-top: 1px solid var(--line); }
    h1 { font-size: 24px; }
    .hero-slides { height: 300px; }
    .hero-caption h2 { font-size: 24px; }
    .section { padding: 40px 0; }
}
