/* Тамбов Титан Строй — ts68.ru
   Восстановленная версия сайта (стиль 2019–2021) */

:root {
  --accent: #5aa6dc;
  --accent-dark: #3d8cc4;
  --ink: #232323;
  --text: #3b3b3b;
  --muted: #7a7a7a;
  --line: #e4e6e8;
  --bg: #ffffff;
  --bg-soft: #f4f5f6;
  --dark: #2a2a2b;
  --dark-2: #48494b;
  --radius: 2px;
  --wrap: 1180px;
  --font-head: "Oswald", "Arial Narrow", Arial, sans-serif;
  --font-body: "Open Sans", Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/1.65 var(--font-body);
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Top bar ---------- */
.topbar { background: var(--accent); color: #fff; font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 32px; padding-top: 9px; padding-bottom: 9px; }
.topbar a, .topbar span { color: #fff; display: inline-flex; align-items: center; gap: 8px; opacity: .95; }
.topbar a:hover { opacity: 1; color: #fff; text-decoration: underline; }
.topbar svg { width: 15px; height: 15px; flex: none; }

/* ---------- Header ---------- */
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; }
.logo img { width: 300px; max-width: 58vw; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav li { position: relative; }
.nav a {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 12px; font: 400 18px/1 var(--font-body); color: var(--ink);
  border-bottom: 2px solid transparent;
}
.nav a svg { width: 18px; height: 18px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-dark); border-bottom-color: var(--accent); }
.nav .sub { display: none; position: absolute; left: 0; top: 100%; min-width: 200px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.08); padding: 6px 0; flex-direction: column; gap: 0; }
.nav .sub a { font-size: 16px; padding: 10px 16px; border: 0; }
.nav li:hover > .sub, .nav li:focus-within > .sub { display: flex; }
.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); }
.burger svg { width: 28px; height: 28px; }

@media (max-width: 960px) {
  .header .wrap { min-height: 72px; }
  .logo img { width: 220px; }
  .burger { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 72px); height: calc(100dvh - 72px); background: #fff; border-top: 1px solid var(--line); transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s; overflow-y: auto; }
  .nav.open { transform: none; visibility: visible; }
  .burger .i-close { display: none; }
  .burger[aria-expanded="true"] .i-open { display: none; }
  .burger[aria-expanded="true"] .i-close { display: block; }
  .nav ul { flex-direction: column; padding: 12px 20px 40px; gap: 0; }
  .nav a { font-size: 20px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
  .nav .sub { display: flex; position: static; border: 0; box-shadow: none; padding: 0 0 0 30px; }
  .nav .sub a { font-size: 17px; }
  .topbar .wrap { font-size: 13px; gap: 4px 18px; }
  .topbar .addr { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px; border: 1px solid transparent; border-radius: var(--radius);
  font: 400 15px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--bg-soft); color: var(--ink); }
.btn-outline { border-color: currentColor; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--ink); }
.btn svg { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; text-align: center;
  background: #1c1c1c url("../img/hero.jpg") center/cover no-repeat;
  min-height: min(82vh, 760px); display: flex; align-items: center;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.52); }
.hero .wrap { position: relative; padding-top: 80px; padding-bottom: 80px; }
.hero .kicker { font: 300 clamp(20px, 2.4vw, 32px)/1.3 var(--font-body); margin-bottom: 18px; opacity: .92; }
.hero h1 { color: #fff; font-size: clamp(38px, 6.2vw, 78px); line-height: 1.12; margin-bottom: .35em; }
.hero .since { font: 500 clamp(44px, 7vw, 92px)/1 var(--font-head); margin: 0 0 40px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ---------- Page header (inner pages) ---------- */
.page-head { position: relative; color: #fff; background: #222 center/cover no-repeat; }
.page-head::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.page-head .wrap { position: relative; padding-top: 90px; padding-bottom: 80px; }
.page-head h1 { color: #fff; text-transform: uppercase; letter-spacing: .02em; margin: 0; }
.page-head p { max-width: 760px; margin: 14px 0 0; font-size: 18px; opacity: .9; }
.crumbs { font-size: 14px; margin-bottom: 14px; opacity: .85; }
.crumbs a { color: #fff; }
.crumbs a:hover { text-decoration: underline; color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section.tight { padding: 60px 0; }
.section.soft { background: var(--bg-soft); }
.section.dark { background: var(--dark); color: #d6d6d6; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title p { color: var(--muted); max-width: 720px; margin: 0 auto; font-size: 17px; }
.dark .section-title p { color: #aaa; }
.lead { font-size: 19px; color: var(--ink); }

/* Masters (3 features) */
.masters h2 { text-align: center; max-width: 900px; margin: 0 auto 56px; font-weight: 400; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.feature { text-align: center; padding: 0 10px; }
.feature .ico { width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); display: grid; place-items: center; }
.feature .ico svg { width: 34px; height: 34px; }
.feature h3 { font-size: 26px; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; }

/* Split blocks (services / advantages) */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 460px; }
.split .media { background: #333 center/cover no-repeat; min-height: 300px; }
.split .body { padding: 70px clamp(24px, 6vw, 80px); display: flex; flex-direction: column; justify-content: center; }
.split.dark .body { background: var(--dark-2); color: #e0e0e0; }
.split.darker .body { background: #262626; color: #e0e0e0; }
.split .body h2 { color: #fff; }
.split .body .btn { align-self: flex-start; margin-top: 16px; }
.split.reverse .media { order: 2; }
.checklist { list-style: none; margin: 0 0 8px; padding: 0; columns: 2; column-gap: 32px; }
.checklist li { position: relative; padding: 6px 0 6px 30px; break-inside: avoid; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 13px; width: 16px; height: 9px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); color: var(--text); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 14px 34px rgba(0,0,0,.1); transform: translateY(-3px); color: var(--text); }
.card .thumb { aspect-ratio: 4/3; overflow: hidden; background: #ddd; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .thumb img { transform: scale(1.04); }
.card .txt { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 23px; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--muted); margin: 0 0 16px; flex: 1; }
.card .more { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-dark); }

/* Call block */
.call { text-align: center; }
.call .phone { display: inline-block; font: 500 clamp(40px, 8vw, 104px)/1.05 var(--font-head); color: var(--accent); margin: 10px 0 16px; letter-spacing: .01em; }
.call .phone:hover { color: var(--accent-dark); }
.call p { max-width: 640px; margin: 0 auto 28px; color: var(--muted); font-size: 17px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery a { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: #ddd; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, filter .4s; }
.gallery a:hover img { transform: scale(1.05); filter: brightness(.8); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; color: #fff; font-size: 14px; background: linear-gradient(transparent, rgba(0,0,0,.65)); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(10,10,10,.92); z-index: 200; display: none; align-items: center; justify-content: center; padding: 60px 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 84vh; max-width: min(1400px, 100%); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; padding: 14px; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lightbox button svg { width: 34px; height: 34px; }
.lightbox .lb-close { top: 10px; right: 10px; }
.lightbox .lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 6px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-cap { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #ddd; font-size: 15px; }

/* Articles list */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post { display: flex; flex-direction: column; color: var(--text); }
.post:hover { color: var(--text); }
.post .thumb { aspect-ratio: 3/2; overflow: hidden; background: #ddd; margin-bottom: 18px; }
.post .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post:hover .thumb img { transform: scale(1.04); }
.post h3 { font-size: 22px; margin-bottom: 8px; }
.post:hover h3 { color: var(--accent-dark); }
.post p { font-size: 15px; color: var(--muted); margin: 0; }

/* Prose (article / service text) */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 60px; align-items: start; }
.prose { font-size: 17px; }
.prose h2 { font-size: 30px; margin-top: 1.6em; }
.prose h3 { font-size: 24px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose figure { margin: 32px 0; }
.prose figure img { width: 100%; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.prose .lead { font-size: 20px; }
.prose > :first-child { margin-top: 0; }
.aside { position: sticky; top: 120px; display: grid; gap: 24px; }
.aside .box { border: 1px solid var(--line); padding: 26px; background: #fff; }
.aside .box h3 { font-size: 22px; }
.aside .box.accent { background: var(--dark); color: #ddd; border: 0; }
.aside .box.accent h3 { color: #fff; }
.aside .box.accent .big { font: 500 30px/1.1 var(--font-head); color: var(--accent); display: block; margin: 6px 0 12px; }
.aside ul { list-style: none; margin: 0; padding: 0; }
.aside li a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 15px; }
.aside li a:hover, .aside li a[aria-current="page"] { color: var(--accent-dark); }

/* Price tables */
.price-block { margin-bottom: 56px; scroll-margin-top: 120px; }
.price-block h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.price-block h2 a { font: 400 14px/1 var(--font-body); text-transform: uppercase; letter-spacing: .06em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table.price { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
table.price th, table.price td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.price thead th { background: var(--dark-2); color: #fff !important; font-weight: 600; font-size: 14px; letter-spacing: .02em; }
table.price td:nth-child(2), table.price th:nth-child(2) { white-space: nowrap; width: 110px; color: var(--muted); }
table.price td:nth-child(3), table.price th:nth-child(3) { white-space: nowrap; width: 150px; text-align: right; font-weight: 600; color: var(--ink); }
table.price tbody tr:nth-child(even) td { background: #fafbfb; }
table.price tr.group td { background: var(--bg-soft) !important; font: 500 18px/1.3 var(--font-head); color: var(--ink); padding-top: 18px; }
.price-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.price-nav a { padding: 9px 16px; border: 1px solid var(--line); font-size: 15px; color: var(--text); background: #fff; }
.price-nav a:hover { border-color: var(--accent); color: var(--accent-dark); }
.note { background: var(--bg-soft); border-left: 3px solid var(--accent); padding: 18px 22px; font-size: 15px; margin: 0 0 40px; }

/* Company / requisites */
.req { width: 100%; border-collapse: collapse; font-size: 16px; }
.req th, .req td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.req th { width: 42%; font-weight: 400; color: var(--muted); padding-right: 20px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }

/* Partners */
.partner { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; border: 1px solid var(--line); padding: 36px; background: #fff; }
.partner .badge { aspect-ratio: 1; display: grid; place-items: center; background: var(--bg-soft); font: 500 26px/1.15 var(--font-head); color: var(--ink); text-align: center; padding: 20px; }

/* Contacts */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; align-items: start; }
.contact-list { list-style: none; margin: 0 0 30px; padding: 0; }
.contact-list li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 3px; }
.contact-list b { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
.contact-list a, .contact-list span { color: var(--ink); font-size: 18px; }
.map { width: 100%; aspect-ratio: 4/3; border: 0; background: var(--bg-soft); }

/* Form */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.form input, .form textarea, .form select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 14px; border: 1px solid #cfd3d6; border-radius: var(--radius); background: #fff;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.form textarea { min-height: 120px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form small { color: var(--muted); font-size: 13px; }
.dark .form label { color: #aaa; }

/* CTA band */
.cta-band { background: var(--accent); color: #fff; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 44px; padding-bottom: 44px; }
.cta-band h2 { color: #fff; margin: 0 0 6px; font-size: clamp(26px, 3vw, 34px); }
.cta-band p { margin: 0; opacity: .92; }
.cta-band .btn-light { color: var(--accent-dark); }

/* Footer */
.footer { background: #1e1e1f; color: #a9a9a9; font-size: 15px; }
.footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 44px; }
.footer img { width: 240px; opacity: .85; margin-bottom: 18px; }
.footer h4 { color: #fff; font-size: 18px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { padding: 4px 0; }
.footer a { color: #cfcfcf; }
.footer a:hover { color: #fff; }
.footer .bottom { border-top: 1px solid #333; }
.footer .bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 18px; padding-bottom: 18px; font-size: 13px; color: #777; }

/* Cookie notice */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; background: rgba(15,15,15,.95); color: #ddd; font-size: 14px; display: none; }
.cookie.show { display: block; }
.cookie .wrap { display: flex; align-items: center; justify-content: center; gap: 18px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; text-align: center; }
.cookie button { background: var(--accent); color: #fff; border: 0; padding: 7px 18px; border-radius: var(--radius); cursor: pointer; font: inherit; }

/* To top */
.to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 100; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; }

/* Responsive */
@media (max-width: 1080px) {
  .cards, .posts { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .aside { position: static; }
}
@media (max-width: 800px) {
  .section { padding: 64px 0; }
  .features { grid-template-columns: 1fr; gap: 34px; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .media { order: 0; }
  .split .body { padding: 50px 22px; }
  .checklist { columns: 1; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .two-col, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer .wrap { grid-template-columns: 1fr; gap: 30px; }
  .partner { grid-template-columns: 1fr; }
  .partner .badge { aspect-ratio: auto; min-height: 140px; }
  .form .row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cards, .posts { grid-template-columns: 1fr; }
  .page-head .wrap { padding-top: 60px; padding-bottom: 50px; }
  .hero .btn { width: 100%; }
  table.price { font-size: 14px; }
  table.price th, table.price td { padding: 10px 10px; }
  table.price td:nth-child(3), table.price th:nth-child(3) { width: auto; }
  .req th { width: 45%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .header, .footer, .cookie, .to-top, .cta-band, .aside { display: none !important; }
  .page-head { background: none !important; color: #000; }
  .page-head::before { display: none; }
  .page-head h1 { color: #000; }
}
