/*
Theme Name: Prometey Engineering
Theme URI: https://prometey35.ru/
Author: ООО «ЦИР «ПРОМЕТЕЙ»
Description: Собственная тема сайта центра инженерных решений.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: prometey
*/

:root {
  --ink: #09212d;
  --ink-deep: #061821;
  --ink-soft: #173644;
  --paper: #f7f8f6;
  --white: #ffffff;
  --muted: #71808a;
  --line: #dce4e5;
  --orange: #f47b2c;
  --orange-dark: #d85e16;
  --orange-pale: #fff0e4;
  --green: #2a8d75;
  --shadow: 0 22px 60px rgba(7, 29, 39, .12);
  --radius: 18px;
  --container: 1240px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
button, .button { cursor: pointer; }

.site-header {
  position: relative;
  z-index: 10;
  background: var(--white);
  border-bottom: 1px solid rgba(9, 33, 45, .08);
}
.header-inner {
  width: min(var(--container), calc(100% - 48px));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 34px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark {
  width: 42px; height: 42px; border: 2px solid var(--orange); border-radius: 12px;
  display: grid; place-items: center; color: var(--orange); background: #fffaf6;
}
.brand-mark svg { width: 27px; height: 27px; }
.brand-text { display: grid; gap: 0; line-height: 1; }
.brand-text strong { letter-spacing: .08em; font-size: 17px; }
.brand-text small { color: var(--muted); font-size: 9px; letter-spacing: .05em; margin-top: 6px; }
.main-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.main-nav a { color: #263a43; font-size: 14px; transition: color .2s ease; white-space: nowrap; }
.main-nav a:hover { color: var(--orange-dark); }
.header-phone { font-weight: 700; font-size: 14px; white-space: nowrap; }
.header-cta { padding: 13px 19px; border-radius: 7px; background: var(--orange); color: #fff !important; font-weight: 700; }
.header-cta:hover { background: var(--orange-dark); }

.wrap { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }
.hero {
  color: #fff;
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    var(--ink);
  background-size: 72px 72px, 72px 72px, auto;
  overflow: hidden;
}
.hero-inner { min-height: 650px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 50px; align-items: center; padding: 78px 0 66px; }
.eyebrow { color: var(--orange); text-transform: uppercase; letter-spacing: .17em; font-size: 12px; font-weight: 800; }
.hero .eyebrow { color: #ff9a5b; }
.hero h1 { max-width: 720px; font-size: clamp(44px, 5.6vw, 78px); line-height: .98; letter-spacing: -.055em; margin: 21px 0 25px; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero-lead { max-width: 645px; color: #b8c7cd; font-size: 18px; line-height: 1.65; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 35px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; padding: 15px 22px; border: 1px solid transparent; border-radius: 6px; font-weight: 750; font-size: 15px; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--orange); color: #fff; }
.button-primary:hover { background: var(--orange-dark); }
.button-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.button-ghost:hover { border-color: var(--orange); color: #ffb07a; }
.hero-notes { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 45px; color: #b8c7cd; font-size: 14px; }
.hero-note { display: inline-flex; align-items: center; gap: 9px; }
.hero-note i { width: 8px; height: 8px; border: 2px solid var(--orange); border-radius: 50%; display: inline-block; }
.hero-visual { position: relative; min-height: 420px; display: grid; place-items: center; }
.hero-ring { width: min(430px, 84vw); aspect-ratio: 1; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; position: absolute; }
.hero-ring::after { content: ""; position: absolute; inset: 49px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
.hero-card { position: relative; z-index: 1; width: min(385px, 100%); padding: 39px 34px; border: 1px solid rgba(255,255,255,.28); background: rgba(8, 32, 43, .76); }
.hero-card .eyebrow { font-size: 11px; }
.hero-card h2 { font-size: 32px; line-height: 1.08; letter-spacing: -.03em; margin: 22px 0 25px; }
.hero-card-line { height: 1px; background: rgba(255,255,255,.18); }
.hero-card-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; padding: 23px 0; }
.hero-card-point { width: 17px; height: 17px; border: 2px solid var(--orange); transform: rotate(45deg); margin: 0 auto; }
.hero-card-note { color: #b8c7cd; font-size: 12px; line-height: 1.5; }
.hero-stat { position: absolute; z-index: 2; background: #fff; color: var(--ink); padding: 18px 20px; box-shadow: var(--shadow); }
.hero-stat strong { color: var(--orange); display: block; font-size: 23px; line-height: 1; }
.hero-stat span { display: block; text-transform: uppercase; letter-spacing: .09em; font-size: 9px; margin-top: 8px; }
.hero-stat-one { left: 0; bottom: 14px; }
.hero-stat-two { right: -2px; top: 56px; }
.hero-bottom { border-top: 1px solid rgba(255,255,255,.13); display: grid; grid-template-columns: repeat(5, 1fr); }
.hero-bottom a { color: #aabcc2; padding: 20px 15px; text-align: center; font-size: 13px; border-right: 1px solid rgba(255,255,255,.13); transition: color .2s ease, background .2s ease; }
.hero-bottom a:last-child { border-right: 0; }
.hero-bottom a:hover { color: #fff; background: rgba(255,255,255,.05); }

.section { padding: 105px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 35px; margin-bottom: 43px; }
.section-head h2 { margin: 13px 0 0; max-width: 680px; font-size: clamp(35px, 4vw, 58px); line-height: 1.02; letter-spacing: -.055em; }
.section-head h2 em { font-family: var(--serif); font-weight: 400; }
.section-intro { max-width: 410px; color: var(--muted); margin: 0; }
.catalog-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.catalog-card { min-height: 365px; padding: 25px 23px; color: #fff; background: var(--ink-soft); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.catalog-card::before { content: ""; position: absolute; inset: auto -40px -72px auto; width: 180px; height: 180px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.catalog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.catalog-card:nth-child(2n) { background: #1d4657; }
.catalog-card:nth-child(3n) { background: #244a4b; }
.catalog-card-number { color: #ff9a5b; font-weight: 800; font-size: 13px; letter-spacing: .1em; }
.catalog-card h3 { font-size: 26px; line-height: 1.08; letter-spacing: -.04em; margin: 35px 0 12px; }
.catalog-card p { color: #b5c8cc; font-size: 13px; line-height: 1.55; margin: 0; }
.catalog-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.catalog-tags span { border: 1px solid rgba(255,255,255,.25); padding: 5px 7px; font-size: 10px; color: #d8e3e4; }
.card-arrow { color: #ff9a5b; font-size: 25px; align-self: end; line-height: 1; }
.catalog-wide { margin-top: 15px; padding: 26px 27px; display: flex; justify-content: space-between; align-items: center; gap: 25px; background: var(--orange-pale); }
.catalog-wide strong { display: block; font-size: 20px; }
.catalog-wide p { color: #7c6a5d; margin: 4px 0 0; font-size: 14px; }
.catalog-wide .button { flex: 0 0 auto; }

.substitution { color: #fff; background: var(--ink); }
.substitution-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 90px; align-items: start; }
.substitution h2 { font-size: clamp(36px, 4.3vw, 62px); line-height: 1; letter-spacing: -.055em; margin: 17px 0 20px; }
.substitution h2 em { color: var(--orange); font-family: var(--serif); font-weight: 400; }
.substitution-copy { color: #b8c7cd; max-width: 500px; }
.substitution-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid rgba(255,255,255,.18); }
.substitution-item { padding: 22px 15px 22px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.substitution-item strong { display: block; font-size: 18px; }
.substitution-item span { color: #9eb1b7; display: block; font-size: 13px; margin-top: 5px; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.process-step { min-height: 200px; padding: 23px 24px 10px 0; border-right: 1px solid var(--line); margin-right: 24px; }
.process-step:last-child { border-right: 0; }
.process-step b { color: var(--orange); font-size: 13px; letter-spacing: .12em; }
.process-step h3 { font-size: 21px; line-height: 1.15; margin: 27px 0 9px; }
.process-step p { color: var(--muted); font-size: 13px; margin: 0; }

.request-section { background: #e9eef0; }
.request-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.request-section h2 { font-size: clamp(38px, 4.4vw, 61px); line-height: 1; letter-spacing: -.055em; margin: 14px 0 19px; }
.request-section h2 em { font-family: var(--serif); font-weight: 400; }
.request-copy { color: var(--muted); max-width: 470px; }
.request-aside { margin-top: 34px; display: grid; gap: 11px; }
.request-aside div { display: flex; align-items: center; gap: 10px; color: #36505b; font-size: 14px; }
.request-aside i { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.request-form { background: var(--white); padding: 31px; box-shadow: 0 11px 32px rgba(7,29,39,.07); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-field { display: grid; gap: 7px; margin-bottom: 15px; }
.form-field label { color: #39515a; font-size: 12px; font-weight: 700; }
.form-field input, .form-field textarea { width: 100%; border: 1px solid #ccd9dc; background: #fbfcfc; padding: 13px 14px; outline: none; color: var(--ink); border-radius: 3px; }
.form-field textarea { min-height: 105px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244,123,44,.12); }
.form-check { display: flex; gap: 9px; align-items: flex-start; color: var(--muted); font-size: 11px; line-height: 1.35; margin: 4px 0 19px; }
.form-check input { margin-top: 2px; accent-color: var(--orange); }
.form-check a { color: var(--orange-dark); text-decoration: underline; }
.form-result { background: #e7f6f0; color: #146653; padding: 12px 14px; margin-bottom: 15px; font-size: 13px; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

.content-page { padding: 90px 0; }
.content-page .content-card { max-width: 820px; background: var(--white); padding: clamp(28px, 6vw, 70px); box-shadow: var(--shadow); }
.content-page h1 { font-size: clamp(38px, 5vw, 70px); line-height: 1; letter-spacing: -.055em; margin: 0 0 27px; }
.content-page h2 { font-size: 30px; line-height: 1.05; margin-top: 40px; }
.content-page p, .content-page li { color: #51626a; font-size: 16px; }
.content-page a { color: var(--orange-dark); text-decoration: underline; }
.content-page ul { padding-left: 21px; }

/* Bearings */
.bearing-hero { background: var(--ink); color: #fff; padding: 85px 0 70px; }
.bearing-hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 70px; align-items: center; }
.bearing-hero h1 { font-size: clamp(40px, 5.5vw, 74px); line-height: .98; letter-spacing: -.06em; margin: 18px 0 22px; }
.bearing-hero h1 em { color: var(--orange); font-family: var(--serif); font-weight: 400; }
.bearing-hero p { max-width: 620px; color: #b8c7cd; font-size: 17px; }
.bearing-sketch { border: 1px solid rgba(255,255,255,.23); padding: 20px; background: rgba(255,255,255,.03); }
.bearing-sketch svg { display: block; width: 100%; height: auto; }
.bearing-tool { padding: 95px 0; }
.tool-grid { display: grid; grid-template-columns: 1fr .95fr; gap: 65px; align-items: start; }
.tool-card { background: var(--white); border: 1px solid var(--line); padding: 31px; box-shadow: 0 14px 38px rgba(7,29,39,.07); }
.tool-card h2 { font-size: 33px; line-height: 1.05; letter-spacing: -.04em; margin: 0 0 10px; }
.tool-card > p { color: var(--muted); font-size: 14px; margin: 0 0 25px; }
.tool-form { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 11px; }
.tool-form .tool-field:first-child { grid-column: 1 / -1; }
.tool-field { display: grid; gap: 5px; }
.tool-field label { color: #39515a; font-weight: 700; font-size: 11px; }
.tool-field input { min-width: 0; border: 1px solid #ccd9dc; padding: 12px; background: #fbfcfc; }
.tool-form .button { grid-column: 1 / -1; margin-top: 8px; }
.tool-result { margin-top: 20px; min-height: 55px; }
.tool-result.empty { color: var(--muted); font-size: 13px; padding: 15px; background: #f4f7f7; }
.tool-result .match { border-left: 4px solid var(--orange); background: #fff5ed; padding: 16px; margin-bottom: 10px; }
.tool-result .match strong { font-size: 19px; }
.tool-result .match small { color: #65777e; display: block; margin-top: 3px; }
.tool-result .match .match-data { display: flex; gap: 14px; flex-wrap: wrap; color: #39515a; font-size: 12px; margin-top: 9px; }
.bearing-copy .eyebrow { color: var(--orange-dark); }
.bearing-copy h2 { font-size: clamp(38px, 4.5vw, 62px); line-height: 1; letter-spacing: -.055em; margin: 16px 0 20px; }
.bearing-copy h2 em { font-family: var(--serif); font-weight: 400; }
.bearing-copy p { color: var(--muted); }
.data-table { width: 100%; border-collapse: collapse; margin-top: 28px; background: var(--white); font-size: 13px; }
.data-table th, .data-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.data-table th { color: #496069; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.data-table td:first-child { font-weight: 750; }
.note-box { padding: 17px 19px; border-left: 4px solid var(--orange); background: var(--orange-pale); color: #6e5a4d; font-size: 13px; margin-top: 23px; }
.bearing-cta { color: #fff; background: var(--ink); padding: 60px 0; }
.bearing-cta-inner { display: flex; justify-content: space-between; gap: 35px; align-items: center; }
.bearing-cta h2 { max-width: 640px; font-size: clamp(29px, 3.4vw, 47px); line-height: 1; letter-spacing: -.045em; margin: 0; }
.bearing-cta h2 em { color: var(--orange); font-family: var(--serif); font-weight: 400; }

.site-footer { color: #b8c7cd; background: var(--ink-deep); padding: 57px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr 1fr; gap: 36px; padding-bottom: 43px; }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text small { color: #9db0b7; }
.footer-brand p { color: #8ea3aa; font-size: 13px; max-width: 260px; margin-top: 19px; }
.footer-title { color: #fff; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; margin: 4px 0 14px; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: #9eb1b7; font-size: 13px; }
.footer-links a:hover { color: #ff9a5b; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.13); padding-top: 19px; display: flex; justify-content: space-between; gap: 15px; color: #71868e; font-size: 11px; }

@media (max-width: 1080px) {
  .main-nav { gap: 13px; }
  .main-nav a { font-size: 12px; }
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
  .catalog-card { min-height: 310px; }
  .hero-inner { gap: 25px; }
}
@media (max-width: 820px) {
  .header-inner { width: min(var(--container), calc(100% - 30px)); min-height: 72px; }
  .main-nav { display: none; }
  .header-phone { margin-left: auto; font-size: 12px; }
  .header-cta { padding: 10px 12px; font-size: 12px; }
  .wrap { width: min(var(--container), calc(100% - 30px)); }
  .hero-inner, .bearing-hero-grid, .tool-grid, .substitution-grid, .request-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 65px 0 45px; }
  .hero-visual { min-height: 365px; margin-top: 20px; }
  .hero-stat-one { left: 4%; }
  .hero-stat-two { right: 3%; }
  .hero-bottom { grid-template-columns: repeat(2, 1fr); }
  .hero-bottom a:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.13); }
  .hero-bottom a:nth-child(3), .hero-bottom a:nth-child(4) { border-top: 1px solid rgba(255,255,255,.13); }
  .hero-bottom a:last-child { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.13); }
  .section { padding: 72px 0; }
  .section-head { display: block; }
  .section-intro { margin-top: 18px; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .substitution-grid { gap: 40px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-step:nth-child(2) { border-right: 0; }
  .process-step:nth-child(n+3) { border-top: 1px solid var(--line); }
  .request-grid { gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .bearing-tool { padding: 70px 0; }
  .bearing-cta-inner { display: block; }
  .bearing-cta-inner .button { margin-top: 24px; }
}
@media (max-width: 520px) {
  .brand-text strong { font-size: 15px; }
  .brand-text small { font-size: 8px; }
  .brand-mark { width: 37px; height: 37px; }
  .header-phone { display: none; }
  .hero h1 { font-size: 45px; }
  .hero-lead { font-size: 16px; }
  .hero-card { padding: 28px 23px; }
  .hero-card h2 { font-size: 27px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-card { min-height: 250px; }
  .catalog-wide { display: block; }
  .catalog-wide .button { margin-top: 17px; }
  .substitution-list { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step, .process-step:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); margin: 0; padding-right: 0; }
  .process-step:nth-child(n+3) { border-top: 0; }
  .form-row, .tool-form { grid-template-columns: 1fr; }
  .tool-form .tool-field:first-child, .tool-form .button { grid-column: auto; }
  .request-form, .tool-card { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-top: 7px; }
}
