.hero-principle {
  max-width: 610px;
  margin-top: 22px;
  padding-left: 16px;
  border-left: 2px solid var(--acid);
  color: var(--muted);
  font-size: 12px;
}

.hero-principle span {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.approach-note,
.confidential-note {
  display: grid;
  grid-template-columns: .55fr 1.45fr;
  gap: 30px;
  margin-top: 12px;
  padding: 28px;
  border: 1px solid var(--color-3e463e);
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--color-171b18), var(--color-111412));
}

.approach-note span,
.confidential-note span {
  color: var(--acid);
  font: 500 13px Unbounded;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.approach-note p,
.confidential-note p {
  margin: 0;
  color: var(--color-b1b9b1);
  font-size: 14px;
}

.confidential-note {
  grid-template-columns: 70px 1fr;
  align-items: center;
}

.confidential-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: var(--acid);
  color: var(--color-111);
  font: 600 11px Unbounded;
}

.confidential-note span {
  display: block;
  margin-bottom: 8px;
}

.skill-cloud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.skill-tag {
  position: absolute;
  z-index: 3;
  padding: 8px 11px;
  border: 1px solid var(--color-3b433c);
  border-radius: 8px;
  background: var(--color-rgba-24-28-25--9-);
  color: var(--text);
  font: 600 10px Unbounded;
  letter-spacing: .035em;
  white-space: nowrap;
  box-shadow: 0 9px 25px var(--color-rgba-0-0-0--18-);
  backdrop-filter: blur(8px);
  transform: translate(-50%, -50%);
}

.skill-tag-01 { top: 13%; left: 48%; }
.skill-tag-02 { top: 22%; left: 78%; }
.skill-tag-03 { top: 73%; left: 25%; }
.skill-tag-04 { top: 87%; left: 76%; }
.skill-tag-05 { top: 27%; left: 17%; }
.skill-tag-06 { top: 10%; left: 66%; }
.skill-tag-07 { top: 34%; left: 86%; }
.skill-tag-08 { top: 61%; left: 18%; }
.skill-tag-09 { top: 20%; left: 34%; }
.skill-tag-10 { top: 86%; left: 37%; }
.skill-tag-11 { top: 45%; left: 15%; }
.skill-tag-12 { top: 46%; left: 84%; }
.skill-tag-13 { top: 76%; left: 87%; }
.skill-tag-14 { top: 36%; left: 30%; }
.skill-tag-15 { top: 86%; left: 55%; }
.skill-tag-16 { top: 61%; left: 88%; }

.contact-methods {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(760px, 100%);
  margin-top: 24px;
}

.contact-method {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--color-rgba-16-18-15--18-);
  border-radius: 14px;
  background: var(--color-rgba-255-255-255--28-);
  color: var(--color-10120f);
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}

a.contact-method:hover {
  transform: translateY(-3px);
  background: var(--color-rgba-255-255-255--5-);
}

.contact-method-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 11px;
  background: var(--color-10120f);
  color: var(--acid);
  font: 700 9px Unbounded;
}

.contact-method > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.contact-method b { display: block; white-space: normal; overflow-wrap: break-word; }
.contact-method b { font-size: 13px; }
.contact-method small { color: var(--color-526020); font-size: 10px; }
.contact-method i { font-style: normal; font-weight: 800; }
.contact-method-pending { opacity: .58; cursor: default; }

/* Мобильное меню */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s;
}

@media (max-width: 980px) {
  .menu-toggle { display: flex; }
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--panel);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    border-bottom: 1px solid var(--line);
    display: none;
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    z-index: 14;
  }
  .nav.open { display: flex; }
}

@media (max-width: 640px) {
  .approach-note { grid-template-columns: 1fr; }
  .confidential-note { grid-template-columns: 50px 1fr; padding: 22px; }
  .confidential-icon { width: 44px; height: 44px; font-size: 9px; }
  .skill-cloud {
    inset: auto 0 3px;
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 10px 4px;
    pointer-events: auto;
    scrollbar-width: none;
  }
  .skill-cloud::-webkit-scrollbar { display: none; }
  .skill-tag { position: static; flex: 0 0 auto; font-size: 10px; transform: none; }
  .contact-methods { grid-template-columns: 1fr; }
  .hero-principle { max-width: 100%; }
  .site-header { padding: 0 12px; gap: 12px; }
  .brand-text { display: none; }
  .header-cta { display: none; }
}

/* Keep long headings and decorative graphics within the mobile layout. */
@media (max-width: 640px) { .hero-visual { overflow: clip; } }
@media (max-width: 375px) { .hero h1 { font-size: clamp(40px, 14vw, 56px); } }
@media (max-width: 640px) {
  .page-section h1 { font-size: clamp(28px, 8vw, 48px); max-width: 100%; overflow-wrap: anywhere; }
}
.hero > * { min-width: 0; }
/* One reserved row keeps internal page headings stable between categories. */
.page-section .uc-page,
.page-section .uc-block,
.page-section .uc-tag-wrap { min-width: 0; max-width: 100%; }
.page-section h1 {
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
.page-section h1 br { display: none; }
.page-section h1[data-heading-fit] {
  line-height: var(--heading-row-height);
  min-height: var(--heading-row-height);
}
.page-section .fullstory-title {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}
.page-section .fullstory-title br { display: inline; }
/* Keep each hero line, including its period, intact and sized to its column. */
.hero-copy { container-type: inline-size; }
.hero h1 { max-width: 100%; white-space: nowrap; overflow-wrap: normal; word-break: normal; font-size: min(clamp(40px, 7vw, 104px), 14cqi); }
.contact h2 { max-width: 100%; overflow-wrap: anywhere; }
.quote_block > .clipboard-copy-link { border: 0; padding: 0; background: transparent; }
.fullstory-body .attachment-btn { min-width: 0; max-width: 100%; box-sizing: border-box; }
.fullstory-body .attachment-btn > span { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
:where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}
.contact :where(a, button, input, textarea):focus-visible {
  outline-color: var(--color-10120f);
}

/* Стили, перенесенные из main.tpl */
@media(min-width:641px){
  .hero{padding-top:72px}
  .section{padding-top:104px}
  .section-heading{margin-bottom:44px}
  .hero-proof>div:first-child span{white-space:nowrap}
  .skill-tag-02{top:17%;left:85%}
  .skill-tag-05{top:24%;left:70%}
  .skill-tag-07{top:30%;left:93%}
  .skill-tag-12{top:55%;left:94%}
  .skill-tag-13{top:76%;left:91%}
  .skill-tag-15{top:94%;left:55%}
  .skill-tag-16{top:64%;left:94%}
  .skill-tag-17{top:37%;left:72%}
  .skill-tag-18{top:43%;left:94%}
  .skill-tag-19{top:50%;left:73%}
  .skill-tag-02,.skill-tag-07,.skill-tag-12,.skill-tag-13,.skill-tag-16,.skill-tag-18{left:auto;right:0;transform:translateY(-50%)}
  .skills-section{padding-top:80px;padding-bottom:56px;margin-top:56px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
  #prices{padding-top:80px}
}
