/*
Theme Name: FSK Modern
Theme URI: https://fsk-engineering.ru/
Author: FSK Engineering
Description: Чистая современная тема для сайта ФСК Инжиниринг.
Version: 1.0.0
Requires at least: 6.8
Requires PHP: 8.1
Text Domain: fsk-modern
*/

:root {
  --ink: #132034;
  --muted: #5f6b7a;
  --line: #dce3ea;
  --paper: #ffffff;
  --soft: #f3f6f8;
  --blue: #1264a3;
  --blue-dark: #0a416f;
  --cyan: #39a7c8;
  --max: 1180px;
  --radius: 18px;
  --shadow: 0 18px 48px rgba(14, 37, 63, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 17px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--blue); text-decoration-thickness: .08em; text-underline-offset: .18em; }
img { max-width: 100%; height: auto; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 50; color: #fff; background: rgba(9, 34, 57, .96); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.12); }
.header-row { min-height: 78px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { display: block; width: 245px; max-height: 54px; object-fit: contain; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 25px; margin: 0; padding: 0; list-style: none; }
.main-nav a { color: #fff; text-decoration: none; font-size: 15px; font-weight: 650; }
.main-nav a:hover, .main-nav a:focus-visible { color: #79d8f2; }
.header-phone { flex: 0 0 auto; color: #fff; text-decoration: none; font-weight: 750; }
.menu-toggle { display: none; margin-left: auto; border: 1px solid rgba(255,255,255,.35); border-radius: 10px; color: #fff; background: transparent; padding: 9px 12px; font: inherit; }
.hero { min-height: 630px; display: grid; align-items: end; color: #fff; background: linear-gradient(90deg, rgba(6,27,47,.92), rgba(6,27,47,.48) 62%, rgba(6,27,47,.16)), url('/wp-content/uploads/2019/05/fsk-engineeringru-fasady-i-fasadnye-sistemy_crop.jpg') center/cover no-repeat; }
.hero-inner { padding: 120px 0 90px; max-width: 810px; }
.eyebrow { margin: 0 0 18px; color: #7ddcf4; font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(42px, 6vw, 76px); line-height: 1.04; letter-spacing: -.035em; }
.hero p { max-width: 700px; margin: 26px 0 34px; color: #e7f1f6; font-size: clamp(19px, 2vw, 24px); line-height: 1.5; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 999px; color: #fff; background: var(--blue); text-decoration: none; font-weight: 750; box-shadow: 0 12px 28px rgba(18,100,163,.3); transition: transform .2s ease, background .2s ease; }
.button:hover { color: #fff; background: var(--blue-dark); transform: translateY(-2px); }
.button-light { color: var(--ink); background: #fff; }
.button-light:hover { color: var(--ink); background: #eaf7fb; }
.section { padding: 86px 0; }
.section-soft { background: var(--soft); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 520px); gap: 40px; align-items: end; margin-bottom: 38px; }
.section-head h2, .content h1 { margin: 0; font-size: clamp(34px, 4vw, 54px); line-height: 1.12; letter-spacing: -.025em; }
.section-head p { margin: 0; color: var(--muted); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service { min-height: 210px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: #fff; text-decoration: none; box-shadow: 0 7px 24px rgba(14,37,63,.05); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.service:hover { transform: translateY(-5px); border-color: #8fc9df; box-shadow: var(--shadow); }
.service-number { color: var(--cyan); font-size: 14px; font-weight: 800; }
.service h3 { margin: 28px 0 8px; font-size: 23px; line-height: 1.25; }
.service p { margin: 0; color: var(--muted); font-size: 15px; }
.about-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 70px; align-items: start; }
.about-mark { position: sticky; top: 120px; padding: 34px; border-radius: var(--radius); color: #fff; background: linear-gradient(145deg, var(--blue-dark), var(--blue)); box-shadow: var(--shadow); }
.about-mark strong { display: block; font-size: 52px; line-height: 1; }
.about-mark span { display: block; margin-top: 14px; color: #d9f0f7; }
.prose > *:first-child { margin-top: 0; }
.prose h2, .prose h3 { line-height: 1.2; }
.prose p { margin: 0 0 1.25em; }
.prose iframe { width: 100%; max-width: 100%; border: 0; border-radius: var(--radius); }
.prose .wp-block-gallery { gap: 14px; }
.cta { color: #fff; background: #0b2943; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.15; }
.cta p { margin: 12px 0 0; color: #c9d9e3; }
.content { min-height: 60vh; padding: 72px 0 92px; }
.content-header { margin-bottom: 42px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.breadcrumbs { margin-bottom: 14px; color: var(--muted); font-size: 14px; }
.site-footer { padding: 52px 0 32px; color: #c7d3dc; background: #071b2c; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
.footer-title { color: #fff; font-weight: 750; }
.site-footer a { color: #fff; }
.copyright { margin-top: 38px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }

@media (max-width: 900px) {
  .header-phone { display: none; }
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; inset: 78px 0 auto; padding: 20px; background: #092139; }
  .main-nav.open { display: block; }
  .main-nav ul { width: min(100%, var(--max)); margin: auto; display: grid; gap: 14px; }
  .hero { min-height: 560px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .section-head, .about-grid { grid-template-columns: 1fr; }
  .about-mark { position: static; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .brand img { width: 205px; }
  .hero-inner { padding: 92px 0 64px; }
  .section { padding: 64px 0; }
  .services, .footer-grid { grid-template-columns: 1fr; }
  .service { min-height: auto; }
  .cta-row { display: grid; }
}

